Project

General

Profile

« Previous | Next » 

Revision a7481aae

Added by nobu (Nobuyoshi Nakada) almost 11 years ago

string.c: consider old terminator

  • string.c (str_fill_term): consider old terminator length, and should
    not use rb_enc_ascget since it depends on the current encoding which
    may not be compatible with the new terminator. [Bug #8634]

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