diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-01 12:26:56 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-01 12:26:56 +0000 |
commit | 143b3339e621a54c0ec3de982b299a7d805304b3 (patch) | |
tree | 1a70670c40c44bff2c05851e93b944ed1b8e806d | |
parent | 20486a7f64e0e35797c77ee19b3b05ad14d3d6cf (diff) | |
download | ruby-143b3339e621a54c0ec3de982b299a7d805304b3.tar.gz |
* enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_offsets): add U+FFF3,
U+FFF4, U+FFF5.
* enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_infos): ditto.
* enc/trans/japanese.c (to_EUC_JP_EF_BF_infos): added.
* enc/trans/japanese.c (to_EUC_JP_EF_BF): added.
* enc/trans/japanese.c (to_EUC_JP_EF_infos): change size.
[ruby-dev:35714]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | enc/trans/japanese.c | 26 |
2 files changed, 34 insertions, 7 deletions
@@ -1,3 +1,18 @@ +Fri Aug 1 20:55:27 2008 NARUSE, Yui <naruse@ruby-lang.org> + + + * enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_offsets): add U+FFF3, + U+FFF4, U+FFF5. + + * enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_infos): ditto. + + * enc/trans/japanese.c (to_EUC_JP_EF_BF_infos): added. + + * enc/trans/japanese.c (to_EUC_JP_EF_BF): added. + + * enc/trans/japanese.c (to_EUC_JP_EF_infos): change size. + [ruby-dev:35714] + Fri Aug 01 18:27:15 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> * parse.y (parser_yylex): removed an useless conditional, and magic diff --git a/enc/trans/japanese.c b/enc/trans/japanese.c index 398901d514..ac3938b2b0 100644 --- a/enc/trans/japanese.c +++ b/enc/trans/japanese.c @@ -13307,14 +13307,15 @@ static const unsigned char to_SHIFT_JIS_EF_BF_offsets[64] = { /* used from to_SHIFT_JIS_EF_BF */ /* used from to_EUC_JP_EF_BF */ - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, + 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, + 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, + 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, }; static const struct byte_lookup* const to_SHIFT_JIS_EF_BF_infos[33] = { - o2(0x81,0x91), o2(0x81,0x92), o2(0x81,0xCA), UNDEF, + o2(0x81,0x91), o2(0x81,0x92), o2(0x81,0xCA), o2(0x81,0x50), + o2(0xFA,0x55), o2(0x81,0x8F), UNDEF, }; static const BYTE_LOOKUP to_SHIFT_JIS_EF_BF = { @@ -23639,9 +23640,20 @@ to_EUC_JP_EF_BE = { }; static const struct byte_lookup* const -to_EUC_JP_EF_infos[7] = { +to_EUC_JP_EF_BF_infos[33] = { + o2(0xA1,0xF1), o2(0xA1,0xF2), o2(0xA2,0xCC), o2(0xA1,0xB1), + o2(0xFC,0xFC), o2(0xA1,0xEF), UNDEF, +}; +static const BYTE_LOOKUP +to_EUC_JP_EF_BF = { + to_SHIFT_JIS_EF_BF_offsets, + to_EUC_JP_EF_BF_infos +}; + +static const struct byte_lookup* const +to_EUC_JP_EF_infos[8] = { &to_EUC_JP_EF_A4, &to_EUC_JP_EF_A7, &to_EUC_JP_EF_A8, &to_EUC_JP_EF_BC, - &to_EUC_JP_EF_BD, &to_EUC_JP_EF_BE, UNDEF, + &to_EUC_JP_EF_BD, &to_EUC_JP_EF_BE, &to_EUC_JP_EF_BF, UNDEF, }; static const BYTE_LOOKUP to_EUC_JP_EF = { |