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 | 5ac1d14f299ca3d3eb01dce39e2bc516f5a0c6b6 (patch) | |
| tree | 173857b8784de66d94582d9c38d814a34a9e0448 /enc | |
| parent | cbfc9989173f8d77fc46ea659cb2856a9936591e (diff) | |
| download | ruby-5ac1d14f299ca3d3eb01dce39e2bc516f5a0c6b6.tar.gz ruby-5ac1d14f299ca3d3eb01dce39e2bc516f5a0c6b6.tar.xz ruby-5ac1d14f299ca3d3eb01dce39e2bc516f5a0c6b6.zip | |
* enc/trans/japanese.c: add support for CP51932,
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
| -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 20b3e8576..0be70bfc9 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); } |
