1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* enc/trans/iso-8859-16-tbl.rb: add ISO-8859-16 converter.

* enc/trans/single_byte.trans: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-12-09 10:27:37 +00:00
parent 33e7c896ca
commit c1d369b0ab
3 changed files with 105 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Fri Dec 9 19:24:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/iso-8859-16-tbl.rb: add ISO-8859-16 converter.
* enc/trans/single_byte.trans: ditto.
Fri Dec 9 14:28:40 2011 NARUSE, Yui <naruse@ruby-lang.org>
* file.c (file_path_convert): don't convert it when the path string is

View file

@ -0,0 +1,98 @@
ISO_8859_16_TO_UCS_TBL = [
["A0", 0x00A0],
["A1", 0x0104],
["A2", 0x0105],
["A3", 0x0141],
["A4", 0x20AC],
["A5", 0x201E],
["A6", 0x0160],
["A7", 0x00A7],
["A8", 0x0161],
["A9", 0x00A9],
["AA", 0x0218],
["AB", 0x00AB],
["AC", 0x0179],
["AD", 0x00AD],
["AE", 0x017A],
["AF", 0x017B],
["B0", 0x00B0],
["B1", 0x00B1],
["B2", 0x010C],
["B3", 0x0142],
["B4", 0x017D],
["B5", 0x201D],
["B6", 0x00B6],
["B7", 0x00B7],
["B8", 0x017E],
["B9", 0x010D],
["BA", 0x0219],
["BB", 0x00BB],
["BC", 0x0152],
["BD", 0x0153],
["BE", 0x0178],
["BF", 0x017C],
["C0", 0x00C0],
["C1", 0x00C1],
["C2", 0x00C2],
["C3", 0x0102],
["C4", 0x00C4],
["C5", 0x0106],
["C6", 0x00C6],
["C7", 0x00C7],
["C8", 0x00C8],
["C9", 0x00C9],
["CA", 0x00CA],
["CB", 0x00CB],
["CC", 0x00CC],
["CD", 0x00CD],
["CE", 0x00CE],
["CF", 0x00CF],
["D0", 0x0110],
["D1", 0x0143],
["D2", 0x00D2],
["D3", 0x00D3],
["D4", 0x00D4],
["D5", 0x0150],
["D6", 0x00D6],
["D7", 0x015A],
["D8", 0x0170],
["D9", 0x00D9],
["DA", 0x00DA],
["DB", 0x00DB],
["DC", 0x00DC],
["DD", 0x0118],
["DE", 0x021A],
["DF", 0x00DF],
["E0", 0x00E0],
["E1", 0x00E1],
["E2", 0x00E2],
["E3", 0x0103],
["E4", 0x00E4],
["E5", 0x0107],
["E6", 0x00E6],
["E7", 0x00E7],
["E8", 0x00E8],
["E9", 0x00E9],
["EA", 0x00EA],
["EB", 0x00EB],
["EC", 0x00EC],
["ED", 0x00ED],
["EE", 0x00EE],
["EF", 0x00EF],
["F0", 0x0111],
["F1", 0x0144],
["F2", 0x00F2],
["F3", 0x00F3],
["F4", 0x00F4],
["F5", 0x0151],
["F6", 0x00F6],
["F7", 0x015B],
["F8", 0x0171],
["F9", 0x00F9],
["FA", 0x00FA],
["FB", 0x00FB],
["FC", 0x00FC],
["FD", 0x0119],
["FE", 0x021B],
["FF", 0x00FF],
]

View file

@ -43,6 +43,7 @@
transcode_tblgen_singlebyte "ISO-8859-13"
transcode_tblgen_singlebyte "ISO-8859-14"
transcode_tblgen_singlebyte "ISO-8859-15"
transcode_tblgen_singlebyte "ISO-8859-16"
transcode_tblgen_singlebyte "WINDOWS-874"
transcode_tblgen_singlebyte "WINDOWS-1250"
transcode_tblgen_singlebyte "WINDOWS-1251"