[ruby-cvs:66941] nobu:r59763 (trunk): string.c: fix false coderange

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Sep 6 22:11:44 JST 2017


nobu	2017-09-06 22:11:44 +0900 (Wed, 06 Sep 2017)

  New Revision: 59763

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

  Log:
    string.c: fix false coderange
    
    * string.c (rb_enc_str_scrub): enc can differ from the actual
      encoding of the string, the cached coderange is useless then.
      [ruby-core:82674] [Bug #13874]

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


More information about the ruby-cvs mailing list