1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby/internal/encoding
Jeremy Evans 6f3857f6a7 Support Encoding::Converter newline: :lf and :lf_newline options
Previously, newline: :lf was accepted but ignored.  Where it
should have been used was commented out code that didn't work,
but unlike all other invalid values, using newline: :lf did
not raise an error.

This adds support for newline: :lf and :lf_newline, for consistency
with newline: :cr and :cr_newline.  This is basically the same as
universal_newline, except that it only affects writing and not
reading due to RUBY_ECONV_NEWLINE_DECORATOR_WRITE_MASK.

Add tests for the File.open :newline option while here.

Fixes [Bug #12436]
2022-08-19 20:23:36 -07:00
..
coderange.h
ctype.h Add missing rb_enc_iscntrl 2022-08-12 15:56:30 +09:00
encoding.h [DOC] Add return values of rb_enc_mbcput 2022-08-07 13:09:46 +09:00
pathname.h
re.h
sprintf.h
string.h Fix typos 2021-11-02 19:17:37 +09:00
symbol.h
transcode.h Support Encoding::Converter newline: :lf and :lf_newline options 2022-08-19 20:23:36 -07:00