You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
So I see that Windows automatically converts LF to CR.
The only solution I have found is to change open_output_file to use binary output modes. However I'm not sure if there would be any consequences to this.
The reason why this has come up is I am trying to use zproject on Windows, but it changes the line endings to the files in the repo.
Hi @Jossgray. It is true that GSL hard-wires a replacement of \n to \r\n when writing files on a Windows system. I spent some time on this problem recently. I came very close to pushing an inelegant (but backward compatible) hack but decided against it. I had the same problem as you and decided it was better to just let git do its thing with line endings. This works quite well once configured, and it deals with the issue in files not generated by GSL as well. Hope this helps.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If the .terminator variable is set to "\n", "\r\n" will still be used in the output on windows.
Following can be used to reproduce.
GSL
XML
The text was updated successfully, but these errors were encountered: