1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

23 commits

Author SHA1 Message Date
akr
ce3f827565 fix last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-24 07:35:49 +00:00
akr
1ca6577e0c add a test for [ruby-dev:33264].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-24 06:38:57 +00:00
matz
81064a7688 * io.c (rb_io_binmode): should not alter encoding. [ruby-dev:32918]
* io.c (io_read_encoding): need not to return ASCII-8BIT for
  binary IO.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 17:44:13 +00:00
akr
f905704727 add a test for getc with stateful conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-03 14:49:38 +00:00
akr
8ffd1eb2a4 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-26 03:07:08 +00:00
matz
319bcad626 * test/ruby/test_io_m17n.rb: fix tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 07:01:35 +00:00
akr
ba85206635 * test/ruby/test_io_m17n.rb (test_pipe): fixed.
[ruby-dev:32743]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 04:54:49 +00:00
akr
f3945617bd * test/ruby/test_io_m17n.rb (test_write_noenc): don't mix text and
binary mode.  [ruby-dev:32743]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 04:24:21 +00:00
matz
a04a812ed0 * include/ruby/encoding.h (rb_enc_left_char_head): new utility macro.
* include/ruby/encoding.h (rb_enc_right_char_head): ditto.

* io.c (appendline): does multibyte RS search in the function.

* io.c (prepare_getline_args): RS may be nil.

* io.c (rb_io_getc): should process character based on external
  encoding, when transcoding required.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 16:36:14 +00:00
akr
23f0e341af add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 10:27:53 +00:00
akr
b132f72b3f add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 10:22:34 +00:00
akr
e2630984e9 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 01:09:37 +00:00
akr
888a89153a add some tests on conversion for pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 23:57:14 +00:00
matz
c749064f9f * io.c (appendline): should do multibyte aware RS search.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 19:55:18 +00:00
akr
b487d9459d add test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 19:15:48 +00:00
akr
3f623cfba1 add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 19:00:03 +00:00
akr
6604434cd6 add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 18:22:59 +00:00
akr
7e237b9813 add assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 17:31:32 +00:00
akr
df1312e2db update tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 17:12:57 +00:00
akr
751bb53a4b add test for IO.pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 17:05:40 +00:00
akr
f5512ba7a3 add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 16:35:43 +00:00
akr
8fb23913ad more IO m17n tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 16:10:36 +00:00
akr
c534670da1 move the test for [ruby-core:14288].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 15:06:14 +00:00