From: entpman@... Date: 2020-08-10T14:51:07+00:00 Subject: [ruby-core:99543] [Ruby master Bug#17110] String.tr unexpected behaviour with backslash Issue #17110 has been updated by theplen (Joey Sheets). Yusuke Endoh, thanks for clearing it up. ---------------------------------------- Bug #17110: String.tr unexpected behaviour with backslash https://bugs.ruby-lang.org/issues/17110#change-87003 * Author: theplen (Joey Sheets) * Status: Rejected * Priority: Normal * ruby -v: ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- `"\\".tr("\\","A")` works great, with `"\\"` becoming `"A"`. `"\\".tr("\\C","AB")` should also output `"A"`, but instead outputs `"\\"`. -- https://bugs.ruby-lang.org/ Unsubscribe: