Line endings, bug/regression or feature of 1.9.3?
Seems Redmine is down, so emailing the list.
One user detected that Ruby 1.9.3-preview1 and latest changes in
ruby_1_9_3 branch generates incorrectly line endings on Windows.
It seems that now, by default, it uses LF instead of CRLF for writing,
unless you explicitly indicate text-mode ('t')
Full investigation of the user is found here:
And simple test:
V:>ruby -ve "n
#5 [ruby-core:39189] Updated by kosaki (Motohiro KOSAKI) about 6 years ago
I can take care of this if time is an issue for you. I just need your approval/confirmation from you.
Please let us know so another 1.9.3 release goes out with this broken behavior.
I think this issue should be fixed before 1.9.3 release. I hope 1.9.3
has no regression.
#6 Updated by nobu (Nobuyoshi Nakada) about 6 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r33165.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- io.c (validate_enc_binmode, prep_stdio): default to text mode on dosish platforms. [Bug #5164]
- transcode.c (rb_econv_prepare_options): keep default ecflags unchanged if no options.