Project

General

Profile

Actions

Bug #13162

closed

tr does not recognize multi-byte characters correctly

Bug #13162: tr does not recognize multi-byte characters correctly

Added by sawa (Tsuyoshi Sawada) over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:79279]

Description

This looks as expected:

"\\".tr('\\', '\') # => "\"

but this doesn't:

"\\".tr("\\¥'", "\¥'") # => "\\"

I confirmed the strings are UTF-8.

Updated by sawa (Tsuyoshi Sawada) over 8 years ago Actions #1 [ruby-core:79282]

OK. I now realize that this was not a bug but a feature. Please close.

Updated by znz (Kazuhiro NISHIYAMA) over 8 years ago Actions #2 [ruby-core:79299]

  • Status changed from Open to Rejected
Actions

Also available in: PDF Atom