Project

General

Profile

Bug #13162

tr does not recognize multi-byte characters correctly

Added by sawa (Tsuyoshi Sawada) about 2 years ago. Updated about 2 years ago.

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

Description

This looks as expected:

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

but this doesn't:

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

I confirmed the strings are UTF-8.

History

Updated by sawa (Tsuyoshi Sawada) about 2 years ago

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

Updated by znz (Kazuhiro NISHIYAMA) about 2 years ago

  • Status changed from Open to Rejected

Also available in: Atom PDF