Project

General

Profile

« Previous | Next » 

Revision 75755ef1

Added by nobu (Nobuyoshi Nakada) over 7 years ago

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
    at [ruby-core:78666]. [Bug #13037]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e