Project

General

Profile

Bug #4449

Bug in String#tr

Added by mdemare (Michiel de Mare) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby-1.9.2-p136
Backport:
[ruby-core:<unknown>]

Description

=begin
œ".tr("X","Y") # => "œ", should be "Y
=end

Associated revisions

Revision 4960e66a
Added by naruse (Yui NARUSE) over 8 years ago

  • string.c (tr_trans): when the hash for multibyte repl is empty, tr is inverse mode, and a character doesn't much the table, the character should be replaced by last replacement. Bug #4449

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 30977
Added by naruse (Yui NARUSE) over 8 years ago

  • string.c (tr_trans): when the hash for multibyte repl is empty, tr is inverse mode, and a character doesn't much the table, the character should be replaced by last replacement. Bug #4449

Revision 30977
Added by naruse (Yui NARUSE) over 8 years ago

  • string.c (tr_trans): when the hash for multibyte repl is empty, tr is inverse mode, and a character doesn't much the table, the character should be replaced by last replacement. Bug #4449

Revision 30977
Added by naruse (Yui NARUSE) over 8 years ago

  • string.c (tr_trans): when the hash for multibyte repl is empty, tr is inverse mode, and a character doesn't much the table, the character should be replaced by last replacement. Bug #4449

Revision 30977
Added by naruse (Yui NARUSE) over 8 years ago

  • string.c (tr_trans): when the hash for multibyte repl is empty, tr is inverse mode, and a character doesn't much the table, the character should be replaced by last replacement. Bug #4449

Revision 30977
Added by naruse (Yui NARUSE) over 8 years ago

  • string.c (tr_trans): when the hash for multibyte repl is empty, tr is inverse mode, and a character doesn't much the table, the character should be replaced by last replacement. Bug #4449

Revision 30977
Added by naruse (Yui NARUSE) over 8 years ago

  • string.c (tr_trans): when the hash for multibyte repl is empty, tr is inverse mode, and a character doesn't much the table, the character should be replaced by last replacement. Bug #4449

History

Updated by naruse (Yui NARUSE) over 8 years ago

  • Status changed from Open to Closed

=begin
fix in r30977.
thank you for reporting.
=end

Also available in: Atom PDF