Project

General

Profile

Actions

Bug #13162

closed

tr does not recognize multi-byte characters correctly

Added by sawa (Tsuyoshi Sawada) about 7 years ago. Updated about 7 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0