diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:26:54 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:26:54 +0000 |
| commit | bf86313e3f00c24d783864d1c873e77ee9ba417c (patch) | |
| tree | 384989c51050296323dc2b45400fc54b393daaa9 /test/ruby | |
| parent | d48d116e0282242a1b70cc9bdf3ae29304660f88 (diff) | |
| download | ruby-bf86313e3f00c24d783864d1c873e77ee9ba417c.tar.gz ruby-bf86313e3f00c24d783864d1c873e77ee9ba417c.tar.xz ruby-bf86313e3f00c24d783864d1c873e77ee9ba417c.zip | |
* transcode.c (make_econv_exception): show readagain part for invalid
byte sequence exception. store the part as an instance variable.
(ecerr_readagain_bytes): new method to access the readagain part.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_econv.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb index 32ac4ca93..a9724d5d6 100644 --- a/test/ruby/test_econv.rb +++ b/test/ruby/test_econv.rb @@ -425,6 +425,7 @@ class TestEncodingConverter < Test::Unit::TestCase assert_equal("EUC-JP", err.source_encoding) assert_equal("UTF-8", err.destination_encoding) assert_equal("\xA4".force_encoding("ASCII-8BIT"), err.error_bytes) + assert_equal("d", err.readagain_bytes) end def test_exc_undef |
