From: zn@... Date: 2017-01-29T01:29:16+00:00 Subject: [ruby-core:79299] [Ruby trunk Bug#13162][Rejected] tr does not recognize multi-byte characters correctly Issue #13162 has been updated by Kazuhiro NISHIYAMA. Status changed from Open to Rejected ---------------------------------------- Bug #13162: tr does not recognize multi-byte characters correctly https://bugs.ruby-lang.org/issues/13162#change-62712 * Author: Tsuyoshi Sawada * Status: Rejected * Priority: Normal * Assignee: * Target version: * ruby -v: 2.3.3 * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- This looks as expected: ``` "\\".tr('\\', '���') # => "���" ``` but this doesn't: ``` "\\".tr("\\��'", "������'") # => "\\" ``` I confirmed the strings are UTF-8. -- https://bugs.ruby-lang.org/ Unsubscribe: