The environment passed to popen cannot contain Unicode on windows.
Added a class that handles this automatically.
When opening files with "rb" and writing them back with "wt", windows
line endings (cr+lf) turns into double spacing (then quadruple? spacing
etc.). Fix by writing the file back as "wb" and doing the encoding
explicitly in the write call.
Just figuring out how to work with branches and pull request in git. I'm closing this and will resubmit pull requests from separate branches (that are not master).
The environment passed to popen cannot contain Unicode on windows. Added a class that handles this automatically.
When opening files with "rb" and writing them back with "wt", windows line endings (cr+lf) turns into double spacing (then quadruple? spacing etc.). Fix by writing the file back as "wb" and doing the encoding explicitly in the write call.