diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-11 01:03:23 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-11 01:03:23 +0000 |
commit | 9d3b91c4b2b1f88bbb0c850a0a69daba3f32852f (patch) | |
tree | 84cb8bfede9d75a51ccb170101b617e1a7ec1711 /ext/nkf/nkf.c | |
parent | 8764a89bd9f29606571fe5e5e8b7fedf6914b2bc (diff) | |
download | ruby-9d3b91c4b2b1f88bbb0c850a0a69daba3f32852f.tar.gz ruby-9d3b91c4b2b1f88bbb0c850a0a69daba3f32852f.tar.xz ruby-9d3b91c4b2b1f88bbb0c850a0a69daba3f32852f.zip |
* ext/nkf/nkf-utf8/nkf.c: update to r1.163.
* ext/nkf/nkf.c: ASCII's canonical name is US-ASCII.
* ext/nkf/lib/kconv.rb (Kconv.isjis): force_encoding('BINARY').
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf/nkf.c')
-rw-r--r-- | ext/nkf/nkf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c index b720198cf..0cf16fa9e 100644 --- a/ext/nkf/nkf.c +++ b/ext/nkf/nkf.c @@ -484,7 +484,7 @@ Init_nkf() rb_define_const(mNKF, "NOCONV", Qnil); rb_define_const(mNKF, "UNKNOWN", Qnil); rb_define_const(mNKF, "BINARY", rb_enc_from_encoding(rb_nkf_enc_get("BINARY"))); - rb_define_const(mNKF, "ASCII", rb_enc_from_encoding(rb_nkf_enc_get("ASCII"))); + rb_define_const(mNKF, "ASCII", rb_enc_from_encoding(rb_nkf_enc_get("US-ASCII"))); rb_define_const(mNKF, "JIS", rb_enc_from_encoding(rb_nkf_enc_get("ISO-2022-JP"))); rb_define_const(mNKF, "EUC", rb_enc_from_encoding(rb_nkf_enc_get("EUC-JP"))); rb_define_const(mNKF, "SJIS", rb_enc_from_encoding(rb_nkf_enc_get("Shift_JIS"))); |