* 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
This commit is contained in:
naruse 2008-08-01 14:17:21 +00:00
Родитель 35bac2083c
Коммит 4fc3ef70e1
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Fri Aug 1 23:16:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/japanese.c: add support for CP51932,
Fri Aug 1 22:59:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/japanese.c: add U+FF0C,

Просмотреть файл

@ -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);
}