Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Line endings for evr/evl outputs; extra BOM indicator in evr file #178

Merged
merged 4 commits into from
Jun 25, 2020

Conversation

scottclowe
Copy link
Member

  • Ensure line endings in evr and evl file are always as intended (i.e. \r\n, regardless of OS)
  • Fix bug with \n being automatically converted into \r\n on Windows, resulting in manual \r\n becoming \r\r\n
  • Fix duplicated byte order mark in evr file

The \n was being automatically replaced with the OS-specific line ending, \r\n, resulting in our \r\n being turned into \r\r\n.
This is resolved by telling the file object which line ending we want to use (on all OSes) and letting it turn \n into that ending.
Byte order marker should only appear once.
Write byte-order-markers the way they should be, as part of the encoding not a string manually prepended to the first line of the file.
@scottclowe scottclowe added the bug Something isn't working label Jun 25, 2020
@scottclowe scottclowe merged commit 972312a into master Jun 25, 2020
@scottclowe scottclowe deleted the bug_regions-line-ending branch June 25, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant