OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000237OMNeT++simulation kernelpublic2011-01-14 15:022011-02-22 23:44
Reporterandras 
Assigned Totomi 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.1 
Target VersionFixed in Version4.2b1 
Summary0000237: Ini files: poor iparsing for iteration values containing comma
DescriptionIf 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000392)
andras (administrator)
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.

- Issue History
Date Modified Username Field Change
2011-01-14 15:02 andras New Issue
2011-02-22 23:42 andras Assigned To => tomi
2011-02-22 23:44 andras Note Added: 0000392
2011-02-22 23:44 andras Status new => resolved
2011-02-22 23:44 andras Fixed in Version => 4.2b1
2011-02-22 23:44 andras Resolution open => fixed


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker