Bug #754

String#subの第二引数が正しくマルチバイト文字列を処理していない

Added by Nobuyoshi Nakada over 6 years ago. Updated about 4 years ago.

[ruby-dev:37097]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada
ruby -v: Backport:

Description

=begin
String#subの第二引数が正しくマルチバイト文字列を処理していない

ruby19 -Ks -ve "puts 'test'.sub(/test/,'表0')"
ruby 1.9.1 (2008-10-28 revision 19983) [i386-mingw32]
付est

ruby19 -Kn -e "puts 'test'.sub(/test/,%!\x95\x5c0!.force_encoding('SJIS'))"
付est

cf. http://pc11.2ch.net/test/read.cgi/tech/1223709050/208
=end

History

#1 Updated by Nobuyoshi Nakada over 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20237.
=end

Also available in: Atom PDF