Actions
Bug #754
closedString#subの第二引数が正しくマルチバイト文字列を処理していない
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
Updated by nobu (Nobuyoshi Nakada) about 16 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r20237.
=end
Actions
Like0
Like0