[ruby-cvs:64254] nobu:r57088 (trunk): fix chomping newline only line

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Dec 16 10:12:09 JST 2016


nobu	2016-12-16 10:12:09 +0900 (Fri, 16 Dec 2016)

  New Revision: 57088

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

  Log:
    fix chomping newline only line
    
    * string.c (chomp_newline): fix chomping newline only line.
      rb_enc_prev_char return NULL if no previous character and must
      not call rb_enc_ascget on it.  a patch by Ary Borenszweig
      <asterite AT gmail.com> at [ruby-core:78666].  [Bug #13037]

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


More information about the ruby-cvs mailing list