[ruby-cvs:54042] nobu:r46896 (trunk): string.c: fix wrong single-byte optimization

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jul 22 12:56:27 JST 2014


nobu	2014-07-22 12:56:26 +0900 (Tue, 22 Jul 2014)

  New Revision: 46896

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

  Log:
    string.c: fix wrong single-byte optimization
    
    * string.c (rb_str_count): fix wrong single-byte optimization.
      7bit ascii can be a trailing byte in Shift_JIS.
      [ruby-dev:48442] [Bug #10078]

  Modified files:
    trunk/ChangeLog
    trunk/string.c
    trunk/test/ruby/test_m17n.rb


More information about the ruby-cvs mailing list