Opened 4 years ago

Last modified 4 years ago

#9789 new Feature Requests

Consistent comment support for INI files

Reported by: edward@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.53.0 Severity: Problem
Keywords: program options config file ini comment semicolon semi colon hash Cc:

Description

See ticket #5379 - semicolon was supported but hash was not in property tree ini parser, hash was added as a result of that ticket.

I am presently dealing with program options. In config_file.cpp, only hash is supported.

Please can semicolon be added for consistency within boost as well as other applications.

For example, PHP only supports semicolon (they have dropped support for hash which I am given to understand was always the lesser used character for commenting INI files). Many applications do not support hash.

Attachments (1)

config_file.cpp.patch (1.2 KB) - added by gkorolev@… 3 years ago.
such a solution would be appropriate?

Download all attachments as: .zip

Change History (2)

comment:1 Changed 4 years ago by Vladimir Prus

Patches wold be welcome. Especially if they come with testsuite update (which would be trivial)

Changed 3 years ago by gkorolev@…

Attachment: config_file.cpp.patch added

such a solution would be appropriate?

Note: See TracTickets for help on using tickets.