]> granicus.if.org Git - re2c/commit
Open text files with "wb" causes issues on Windows 161/head
authorPaulo Custodio <pauloscustodio@gmail.com>
Sat, 5 Nov 2016 13:00:08 +0000 (13:00 +0000)
committerPaulo Custodio <pauloscustodio@gmail.com>
Sat, 5 Nov 2016 16:01:36 +0000 (16:01 +0000)
commit042696f7e8c9569afbe130760d85074a69a84087
treec523130546c14beba12afbd87b3b7eae0847ba24
parent334c650bd33c45a21f8fb467d02b2b6cfda674e1
Open text files with "wb" causes issues on Windows

Text files need to be opened for writing with "w", so that stdio does
the right thing in respect to the correct line endings for the current OS.
("\r\n" in Windows, "\n" in Linux).
re2c/src/codegen/output.cc