[ruby-cvs:68694] nobu:r61513 (trunk): string.c: chomp rs at the end

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Dec 29 21:19:03 JST 2017


nobu	2017-12-29 21:19:03 +0900 (Fri, 29 Dec 2017)

  New Revision: 61513

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61513

  Log:
    string.c: chomp rs at the end
    
    * string.c (rb_str_enumerate_lines): should chomp record separator
      only, but not a newline, at the end of the receiver as well as
      middle, if the separator is given.
      [ruby-core:84552] [Bug #14257]

  Modified files:
    trunk/string.c
    trunk/test/ruby/test_string.rb


More information about the ruby-cvs mailing list