1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/enc
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
..
jis
trans Support Encoding::Converter newline: :lf and :lf_newline options 2022-08-19 20:23:36 -07:00
unicode
ascii.c
big5.c
cesu_8.c
cp949.c
depend
ebcdic.h
emacs_mule.c
encdb.c
encinit.c.erb
euc_jp.c
euc_kr.c
euc_tw.c
gb2312.c
gb18030.c
gbk.c
iso_2022_jp.h
iso_8859.h
iso_8859_1.c
iso_8859_2.c
iso_8859_3.c
iso_8859_4.c
iso_8859_5.c
iso_8859_6.c
iso_8859_7.c
iso_8859_8.c
iso_8859_9.c
iso_8859_10.c
iso_8859_11.c
iso_8859_13.c
iso_8859_14.c
iso_8859_15.c
iso_8859_16.c
koi8_r.c
koi8_u.c
make_encmake.rb
Makefile.in
mktable.c
shift_jis.c
shift_jis.h
unicode.c
us_ascii.c
utf_7.h
utf_8.c
utf_16_32.h
utf_16be.c
utf_16le.c
utf_32be.c
utf_32le.c
windows_31j.c
windows_1250.c
windows_1251.c
windows_1252.c
windows_1253.c
windows_1254.c
windows_1257.c
x_emoji.h