ruby-changes:6789
From: naruse <ko1@a...>
Date: Fri, 1 Aug 2008 21:27:27 +0900 (JST)
Subject: [ruby-changes:6789] Ruby:r18305 (trunk): * enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_offsets): add U+FFF3,
naruse 2008-08-01 21:26:56 +0900 (Fri, 01 Aug 2008) New Revision: 18305 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18305 Log: * 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] Modified files: trunk/ChangeLog trunk/enc/trans/japanese.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18304) +++ ChangeLog (revision 18305) @@ -1,3 +1,18 @@ +Fri Aug 1 20:55:27 2008 NARUSE, Yui <naruse@r...> + + + * 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@y...> * parse.y (parser_yylex): removed an useless conditional, and magic Index: enc/trans/japanese.c =================================================================== --- enc/trans/japanese.c (revision 18304) +++ enc/trans/japanese.c (revision 18305) @@ -13307,14 +13307,15 @@ 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 @@ }; 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 = { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/