From bf86313e3f00c24d783864d1c873e77ee9ba417c Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 25 Aug 2008 15:26:54 +0000 Subject: * 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 --- test/ruby/test_econv.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') 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 -- cgit