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

Unsafe 'safe' dos2unix behaviour #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tansy
Copy link

@tansy tansy commented Feb 2, 2024

Corrected behaviour of dos2unix that interrupts processing file when finds a character that it believes to be binary.

One can observe this behaviour with this file containing, supposedly, binary character at which it stops processing.

$ dos2unix < xterm.js > xterm.js.out
dos2unix: Binary symbol 0x1B found at line 1
dos2unix: Skipping binary file stdin

$ d2u xterm.js > xterm.js.d2u

271234 xterm.js
271235 xterm.js.d2u
  6513 xterm.js.out

Added .gitattributes that should solve issues with line endings when committing.
Unified `p7zip-main/CPP/7zip/7zip_gcc_additional.mak' to use LF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant