diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-01 14:17:21 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-01 14:17:21 +0000 |
commit | 4fc3ef70e1c7aa44adf78a6346acd5d001f1cf0f (patch) | |
tree | 173857b8784de66d94582d9c38d814a34a9e0448 /enc/trans | |
parent | 35bac2083c9bbf9dc6b7cb83c75749a91ad445b3 (diff) | |
download | ruby-4fc3ef70e1c7aa44adf78a6346acd5d001f1cf0f.tar.gz |
* enc/trans/japanese.c: add support for CP51932,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans')
-rw-r--r-- | enc/trans/japanese.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/enc/trans/japanese.c b/enc/trans/japanese.c index 20b3e8576f..0be70bfc99 100644 --- a/enc/trans/japanese.c +++ b/enc/trans/japanese.c @@ -18163,6 +18163,11 @@ rb_from_EUC_JP = { "EUC-JP", "UTF-8", &from_EUC_JP, 3, 0, NULL, NULL, }; +static const rb_transcoder +rb_from_CP51932 = { + "CP51932", "UTF-8", &from_EUC_JP, 3, 0, + NULL, NULL, +}; static const struct byte_lookup* const to_EUC_JP_C2_infos[14] = { @@ -23679,6 +23684,11 @@ rb_to_EUC_JP = { "UTF-8", "EUC-JP", &to_EUC_JP, 2, 1, NULL, NULL, }; +static const rb_transcoder +rb_to_CP51932 = { + "UTF-8", "CP51932", &to_EUC_JP, 2, 1, + NULL, NULL, +}; #define ISO_2022_ENCODING(escseq, byte) ((escseq<<8)|byte) enum ISO_2022_ESCSEQ { @@ -23907,9 +23917,11 @@ Init_japanese(void) rb_register_transcoder(&rb_from_SHIFT_JIS); rb_register_transcoder(&rb_from_Windows_31J); rb_register_transcoder(&rb_from_EUC_JP); + rb_register_transcoder(&rb_from_CP51932); rb_register_transcoder(&rb_to_SHIFT_JIS); rb_register_transcoder(&rb_to_Windows_31J); rb_register_transcoder(&rb_to_EUC_JP); + rb_register_transcoder(&rb_to_CP51932); rb_register_transcoder(&rb_from_ISO_2022_JP); rb_register_transcoder(&rb_to_ISO_2022_JP); } |