[ruby-cvs:50108] glass:r42966 (trunk): * string.c (rb_str_enumerate_lines): make String#each_line and

glass at ruby-lang.org glass at ruby-lang.org
Wed Sep 18 23:34:08 JST 2013


glass	2013-09-18 23:34:04 +0900 (Wed, 18 Sep 2013)

  New Revision: 42966

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42966

  Log:
    * string.c (rb_str_enumerate_lines): make String#each_line and
      #lines not raise invalid byte sequence error when it is called
      with an argument. The patch also causes performance improvement.
      [ruby-dev:47549] [Bug #8698]
    
    * test/ruby/test_m17n_comb.rb (test_str_each_line): remove
      assertions which check that String#each_line and #lines will
      raise an error if the receiver includes invalid byte sequence.

  Modified files:
    trunk/ChangeLog
    trunk/string.c
    trunk/test/ruby/test_m17n_comb.rb


More information about the ruby-cvs mailing list