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 gperf.sed: static declarations 2017-12-15 14:42:43 +00:00
trans Support Encoding::Converter newline: :lf and :lf_newline options 2022-08-19 20:23:36 -07:00
unicode Remove Unicode 13.0.0 related files 2022-03-16 08:30:04 +09:00
Makefile.in Resolve abi symbol references from miniruby to avoid circular deps 2022-08-04 16:29:22 +09:00
ascii.c Rename ENCINDEX_ASCII to ENCINDEX_ASCII_8BIT 2022-07-19 08:48:56 +02:00
big5.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
cesu_8.c remove UNREACHABLE 2019-06-24 16:01:46 +09:00
cp949.c Use https instead of http 2020-07-28 19:51:54 +09:00
depend Revert "enc/depend: fix out-of-src build with --with-static-linked-ext" (#5616) 2022-03-02 18:19:01 +09:00
ebcdic.h enc/ebcdic.h, enc/trans/ebcdic.trans, 2015-12-15 08:57:58 +00:00
emacs_mule.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
encdb.c decouple internal.h headers 2019-12-26 20:45:12 +09:00
encinit.c.erb [Feature #18249] Include ruby.h in extensions to have ABI version 2022-02-22 09:55:21 -05:00
euc_jp.c Use https instead of http 2020-07-28 19:51:54 +09:00
euc_kr.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
euc_tw.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
gb2312.c Init function is need to link statically 2019-08-10 01:41:50 +09:00
gb18030.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
gbk.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_2022_jp.h * enc/iso_2022_jp.h: fix typos. 2015-12-14 02:50:21 +00:00
iso_8859.h iso_8859.h: SHARP_s 2016-06-11 02:24:38 +00:00
iso_8859_1.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_2.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_3.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_4.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_5.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_6.c Use https instead of http 2020-07-28 19:51:54 +09:00
iso_8859_7.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_8.c Use https instead of http 2020-07-28 19:51:54 +09:00
iso_8859_9.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_10.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_11.c Use https instead of http 2020-07-28 19:51:54 +09:00
iso_8859_13.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_14.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_15.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
iso_8859_16.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
koi8_r.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
koi8_u.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
make_encmake.rb Refactor ERB version checking for keyword arguments 2018-02-27 11:12:23 +00:00
mktable.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
shift_jis.c Use https instead of http 2020-07-28 19:51:54 +09:00
shift_jis.h Add missing file 2017-12-01 14:08:13 +00:00
unicode.c Suppress warnings by gcc 10.1.0-RC-20200430 2020-05-04 12:28:24 +09:00
us_ascii.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
utf_7.h * enc/iso_2022_jp.h: fix typos. 2015-12-14 02:50:21 +00:00
utf_8.c Change max byte length of UTF-8 to 4 bytes 2017-05-30 05:43:41 +00:00
utf_16_32.h * enc/iso_2022_jp.h: fix typos. 2015-12-14 02:50:21 +00:00
utf_16be.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
utf_16le.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
utf_32be.c fix UTF-32 valid_encoding? 2017-03-09 02:04:10 +00:00
utf_32le.c fix UTF-32 valid_encoding? 2017-03-09 02:04:10 +00:00
windows_31j.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1250.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1251.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1252.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1253.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1254.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1257.c Use https instead of http 2020-07-28 19:51:54 +09:00
x_emoji.h enc/x_emoji.h: fixed dead-links [ci skip] 2019-12-24 10:33:32 +09:00