Project

General

Profile

Actions

Bug #754

closed

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

Added by nobu (Nobuyoshi Nakada) about 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
Backport:
[ruby-dev:37097]

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

Actions #1

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

Also available in: Atom PDF

Like0
Like0