diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-07 14:49:05 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-07 14:49:05 +0000 |
commit | 78350a0cc6e2266d7ea7211d5e40e9c0a9380d83 (patch) | |
tree | c0c1f9f644d60f3c305fd2936326e1693738d72e /test/ruby | |
parent | 45d7c84f2a6193ac595145ff2f66716004e1635b (diff) | |
download | ruby-78350a0cc6e2266d7ea7211d5e40e9c0a9380d83.tar.gz |
* enc/trans/iso2022.trans: stateless-iso-2022-jp is defined to avoid
undefined conversion error between iso-2022-jp and the corresponding
stateless encoding.
* enc/emacs_mule.c: replicate emacs-mule as stateless-iso-2022-jp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_econv.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb index ef87fff4cc..514cac568c 100644 --- a/test/ruby/test_econv.rb +++ b/test/ruby/test_econv.rb @@ -28,8 +28,8 @@ class TestEncodingConverter < Test::Unit::TestCase end def test_s_stateless_encoding - assert_equal(Encoding::EUC_JP, Encoding::Converter.stateless_encoding("ISO-2022-JP")) - assert_equal(Encoding::EUC_JP, Encoding::Converter.stateless_encoding(Encoding::ISO_2022_JP)) + assert_equal(Encoding::STATELESS_ISO_2022_JP, Encoding::Converter.stateless_encoding("ISO-2022-JP")) + assert_equal(Encoding::STATELESS_ISO_2022_JP, Encoding::Converter.stateless_encoding(Encoding::ISO_2022_JP)) assert_nil(Encoding::Converter.stateless_encoding("EUC-JP")) assert_nil(Encoding::Converter.stateless_encoding("UTF-8")) assert_nil(Encoding::Converter.stateless_encoding("UTF-16BE")) |