-
Notifications
You must be signed in to change notification settings - Fork 0
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
Test eol used by lua io.write()
under different OSs
#6
base: main
Are you sure you want to change the base?
Conversation
First test: How does lua On Win,
From mailing list thread http://lua-users.org/lists/lua-l/2015-05/msg00348.html,
|
Test 2: Try with Succeeded On Win,
|
Also see this thread http://lua-users.org/lists/lua-l/2009-11/msg00815.html
This answer https://stackoverflow.com/a/43967013 quoted PIL
|
7b24b71
to
e7379f1
Compare
Backgrounds
l3build save <name>
uses CRLF on Win and LF on *nix. Since test output is always rewritten rather than incrementally appended/edited, this causes unnecessary EOL changes.See
https://github.com/lvjr/tabularray/pull/385#issuecomment-1474855272
l3build
already tries to normalize EOLs inrewrite()
usinggsub(file_content, "\r\n", "\n")
, but has no effect.