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 | 249c08716da39c4f51c295948125436640a60487 (patch) | |
tree | 84cb8bfede9d75a51ccb170101b617e1a7ec1711 /ext/nkf/lib | |
parent | 9e35ba455d6b87b79ca872e9fa71d3f95c78286d (diff) | |
download | ruby-249c08716da39c4f51c295948125436640a60487.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf/lib')
-rw-r--r-- | ext/nkf/lib/kconv.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/nkf/lib/kconv.rb b/ext/nkf/lib/kconv.rb index a1c62e7765..159a5aa233 100644 --- a/ext/nkf/lib/kconv.rb +++ b/ext/nkf/lib/kconv.rb @@ -181,7 +181,7 @@ module Kconv )* \x1b \x28 B [\t\n\r\x20-\x7E]* )* - \z/nox =~ str.dup.force_encoding(nil) ? true : false + \z/nox =~ str.dup.force_encoding('BINARY') ? true : false end module_function :isjis |