Subject: | Carriage returns cause confusing error message |
If the config file being read contains carriage returns and line feeds
at the end of each line rather than just line feeds (i.e. the standard
Windows file format, when read on a machine expecting Unix file format),
Config::Std emits an errors that are very difficult to make sense of.
Example of error:
Error in config file './test/data_mini_bus_test_1.conf' near:
[test_a]
The above error leaves the user pondering why their config file that
looks perfectly valid is generating errors, unless they happen to look
at it in something that shows them the extra ^M at the end of each line.
This error is generated at about line 454 in _load_config_for(), in the
else case labeled "Mystery...".
This should be corrected by either allowing \r\n everywhere \n is
allowed, or giving a clearer error message when a \r is detected.