mquinson / po4a

Maintain the translations of your documentation with ease (PO for anything)
http://po4a.org/
GNU General Public License v2.0
121 stars 58 forks source link

CRLF in config breaks parsing #409

Closed christian-wolf-eks closed 1 year ago

christian-wolf-eks commented 1 year ago

I have found the issue that on windows (with WSL) where lines are typically terminated with CRLF, the parsing of the config file fails. The error message is Syntax error: ... in the console that does not sound very straight forward.

My suggestion is to replace all CR chars by LF. That way, you cope as well with iOS line encoding (only CR, no LF). Under Windows this is causing a LFLF. Those are two lines, one line completely empty and thus ignored.

Unfortunately, I am no Perl developer, so I cannot help much.

This might be one issue on the agenda for #370.