ruby-cvs:21856
From: matz ruby-lang.org
Date: Tue, 25 Dec 2007 01:36:16 +0900 (JST)
Subject: [ruby-cvs:21856] Ruby:r14619 (trunk): * include/ruby/encoding.h (rb_enc_left_char_head): new utility macro.
matz 2007-12-25 01:36:14 +0900 (Tue, 25 Dec 2007)
New Revision: 14619
Modified files:
trunk/ChangeLog
trunk/include/ruby/encoding.h
trunk/io.c
trunk/string.c
trunk/test/ruby/test_io_m17n.rb
trunk/version.h
Log:
* 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.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=14619&r2=14618
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=14619&r2=14618
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14619&r2=14618
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io_m17n.rb?r1=14619&r2=14618
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=14619&r2=14618
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=14619&r2=14618