diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-16 17:06:35 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-16 17:06:35 +0000 |
commit | 49e021ebf76943a4b1b5457c08fdf033c830ecfd (patch) | |
tree | 1a6b5f56c22cac07c3ebff759e5ef97d5c42ef64 /test/ruby/test_io_m17n.rb | |
parent | c94d580a44677c63c6b8e3b25ef43b3c82e19989 (diff) | |
download | ruby-49e021ebf76943a4b1b5457c08fdf033c830ecfd.tar.gz ruby-49e021ebf76943a4b1b5457c08fdf033c830ecfd.tar.xz ruby-49e021ebf76943a4b1b5457c08fdf033c830ecfd.zip |
* include/ruby/io.h (rb_io_t): new fields: readconv, crbuf, crbuf_off,
crbuf_len, crbuf_capa.
(MakeOpenFile): initialize them.
* io.c (io_shift_crbuf): new function.
(io_getc): use econv.
(rb_io_fptr_finalize): finalize readconv and crbuf.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index bc9c6f34c..6d7b4f7f9 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -220,12 +220,10 @@ EOT with_tmpdir { src = "\e$B\x23\x30\x23\x31\e(B".force_encoding("iso-2022-jp") generate_file('tmp', src) - assert_raise(NotImplementedError) do - open("tmp", "r:iso-2022-jp:euc-jp") {|f| - assert_equal("\xa3\xb0".force_encoding("euc-jp"), f.getc) - assert_equal("\xa3\xb1".force_encoding("euc-jp"), f.getc) - } - end + open("tmp", "r:iso-2022-jp:euc-jp") {|f| + assert_equal("\xa3\xb0".force_encoding("euc-jp"), f.getc) + assert_equal("\xa3\xb1".force_encoding("euc-jp"), f.getc) + } } end |