OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000237OMNeT++simulation kernelpublic2011-01-14 15:022011-02-22 23:44
andras 
tomi 
normalminoralways
resolvedfixed 
4.1 
4.2b1 
0000237: Ini files: poor iparsing for iteration values containing comma
If an omnetpp.ini contains the following line:

 **.packetLength = ${2500, 1500, intuniform(256,512), 64}

then intuniform(256,512) is split at the comma, and interpreted as two items. Quoting (backslash, double quote) does not help.

There are similar errors with brackets, curly braces, quoted strings containing commas, etc.

A better tokenizer is needed: it should count parentheses, brackets, curly braces, quotation marks and apostrophes; it should also honor backslash quoting inside string literals.

The IDE's ini file parsing also has this problem.
No tags attached.
Issue History
2011-01-14 15:02andrasNew Issue
2011-02-22 23:42andrasAssigned To => tomi
2011-02-22 23:44andrasNote Added: 0000392
2011-02-22 23:44andrasStatusnew => resolved
2011-02-22 23:44andrasFixed in Version => 4.2b1
2011-02-22 23:44andrasResolutionopen => fixed

Notes
(0000392)
andras   
2011-02-22 23:44   
The new parser takes nested parens (also brackets, curly braces) and quotes into account. Escaping, where still needed, is done with backslash. See envir/ChangeLog.