1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/enc/trans
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
..
CP
EMOJI
GB replace copyrights by explanatory text in data files for GB2312/GB12345 mappings 2017-09-01 10:22:09 +00:00
JIS Fixed misspellings 2019-12-22 22:49:17 +09:00
ucm
big5-hkscs-tbl.rb
big5-uao-tbl.rb
big5.trans
cesu_8.trans add encoding conversion from/to CESU-8 2019-07-14 10:58:50 +09:00
chinese.trans
cp850-tbl.rb
cp852-tbl.rb
cp855-tbl.rb
cp949-tbl.rb
ebcdic.trans
emoji-exchange-tbl.rb
emoji.trans
emoji_iso2022_kddi.trans
emoji_sjis_docomo.trans
emoji_sjis_kddi.trans
emoji_sjis_softbank.trans
escape.trans Encode ' as ' when using encode(xml: :attr) 2020-07-10 09:34:08 -07:00
euckr-tbl.rb
gb18030-tbl.rb
gb18030.trans
gbk-tbl.rb
gbk.trans
ibm437-tbl.rb
ibm720-tbl.rb Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
ibm737-tbl.rb
ibm775-tbl.rb
ibm852-tbl.rb
ibm855-tbl.rb
ibm857-tbl.rb
ibm860-tbl.rb
ibm861-tbl.rb
ibm862-tbl.rb
ibm863-tbl.rb
ibm865-tbl.rb
ibm866-tbl.rb
ibm869-tbl.rb
iso-8859-1-tbl.rb
iso-8859-2-tbl.rb
iso-8859-3-tbl.rb
iso-8859-4-tbl.rb
iso-8859-5-tbl.rb
iso-8859-6-tbl.rb
iso-8859-7-tbl.rb
iso-8859-8-tbl.rb
iso-8859-9-tbl.rb
iso-8859-10-tbl.rb
iso-8859-11-tbl.rb
iso-8859-13-tbl.rb
iso-8859-14-tbl.rb
iso-8859-15-tbl.rb
iso-8859-16-tbl.rb
iso2022.trans
japanese.trans
japanese_euc.trans
japanese_sjis.trans
koi8-r-tbl.rb
koi8-u-tbl.rb
korean.trans
maccroatian-tbl.rb
maccyrillic-tbl.rb
macgreek-tbl.rb
maciceland-tbl.rb
macroman-tbl.rb
macromania-tbl.rb
macturkish-tbl.rb
macukraine-tbl.rb
newline.trans Support Encoding::Converter newline: :lf and :lf_newline options 2022-08-19 20:23:36 -07:00
single_byte.trans Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
tis-620-tbl.rb
transdb.c [Feature #18249] Include ruby.h in extensions to have ABI version 2022-02-22 09:55:21 -05:00
utf8_mac-tbl.rb
utf8_mac.trans
utf_16_32.trans
windows-874-tbl.rb
windows-1250-tbl.rb
windows-1251-tbl.rb
windows-1252-tbl.rb
windows-1253-tbl.rb
windows-1254-tbl.rb
windows-1255-tbl.rb
windows-1256-tbl.rb
windows-1257-tbl.rb