ivakyb / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

INI_LINETERM should be flexible, if writing to existing ini #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. INI_LINETERM is "\n" (LF)
2. Write to ini which EndOfLine is (CRLF)
3. Its EOL is changed to LF

What is the expected output? What do you see instead?
Although new ini's EOL is OK with LF, I'd like to keep CRLF if the file is 
originally CRLF.

Please provide any additional information below.
Currently I'm using a nasty patch to use INI_LINETERM as global var, which 
makes (at least writing) thread unsafe...

Original issue reported on code.google.com by cielarti...@gmail.com on 13 Jun 2012 at 5:21