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 * enc/trans/EMOJI/*.src, enc/trans/emoji*, enc/x-emoji.c, test/ruby/enc/test_emoji.rb, tool/enc-emoji-citrus-gen.rb, tool/enc-emoji4unicode.rb, tool/jisx0208.rb, tool/test/test_jisx0208.rb: new encodings to support emoji charsets, which are used by Japanese mobile phones [ruby-dev:40528]. Thanks Yoji Shidara for a lot of contribution. 2010-03-09 09:15:42 +00:00
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 Add missing tables. 2010-11-22 11:35:55 +00:00
big5-hkscs-tbl.rb * enc/trans/big5-hkscs-tbl.rb: Update table as HKSCS-2008. 2010-11-24 16:40:38 +00:00
big5-uao-tbl.rb * enc/big5.c, enc/trans/big5.trans, enc/trans/big5-uao-tbl.rb, 2009-11-17 08:56:11 +00:00
big5.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
cesu_8.trans add encoding conversion from/to CESU-8 2019-07-14 10:58:50 +09:00
chinese.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
cp850-tbl.rb
cp852-tbl.rb
cp855-tbl.rb
cp949-tbl.rb
ebcdic.trans follow the change of the name 2015-12-15 13:11:33 +00:00
emoji-exchange-tbl.rb * enc/trans/EMOJI/*.src, enc/trans/emoji*, enc/x-emoji.c, test/ruby/enc/test_emoji.rb, tool/enc-emoji-citrus-gen.rb, tool/enc-emoji4unicode.rb, tool/jisx0208.rb, tool/test/test_jisx0208.rb: new encodings to support emoji charsets, which are used by Japanese mobile phones [ruby-dev:40528]. Thanks Yoji Shidara for a lot of contribution. 2010-03-09 09:15:42 +00:00
emoji.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
emoji_iso2022_kddi.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
emoji_sjis_docomo.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
emoji_sjis_kddi.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
emoji_sjis_softbank.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
escape.trans Encode ' as ' when using encode(xml: :attr) 2020-07-10 09:34:08 -07:00
euckr-tbl.rb euckr-tbl.rb: euro and registered signs 2014-08-19 13:22:46 +00:00
gb18030-tbl.rb * enc/trans/gb18030-tbl.rb: Fix omission of C1 region in code table 2009-12-03 11:29:33 +00:00
gb18030.trans remove trailing spaces 2014-05-22 10:58:08 +00:00
gbk-tbl.rb * enc/trans/gbk-tbl.rb: Add euro sign. [ruby-core:33094] 2010-11-08 00:50:13 +00:00
gbk.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
ibm437-tbl.rb
ibm720-tbl.rb Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
ibm737-tbl.rb * enc/trans/ibm737-tbl.rb: greek code page. fixes #4738 2011-05-19 15:58:09 +00:00
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 * enc/trans/iso-8859-16-tbl.rb: add ISO-8859-16 converter. 2011-12-09 10:27:37 +00:00
iso2022.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
japanese.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
japanese_euc.trans * enc/trans/japanese_euc.trans, test/ruby/test_transcode.rb, 2013-06-02 14:36:41 +00:00
japanese_sjis.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
koi8-r-tbl.rb
koi8-u-tbl.rb
korean.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
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 * enc/trans/utf8_mac-tbl.rb: fix r42789. 2013-09-04 06:40:39 +00:00
utf8_mac.trans * enc/trans/utf8_mac-tbl.rb: fix r42789. 2013-09-04 06:40:39 +00:00
utf_16_32.trans Supports static linking of extensions and encodings again. 2012-05-16 05:39:06 +00:00
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 Update windows-1255 table 2016-10-28 15:14:32 +00:00
windows-1256-tbl.rb
windows-1257-tbl.rb