From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id C7D241F531 for ; Mon, 10 Aug 2020 03:00:19 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 66EF5120975; Mon, 10 Aug 2020 11:59:44 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 03457120971 for ; Mon, 10 Aug 2020 11:59:41 +0900 (JST) Received: by filterdrecv-p3mdw1-7ff865655c-mjt6x with SMTP id filterdrecv-p3mdw1-7ff865655c-mjt6x-20-5F30B83A-22 2020-08-10 03:00:10.201107604 +0000 UTC m=+981833.229854172 Received: from herokuapp.com (unknown) by geopod-ismtpd-5-1 (SG) with ESMTP id BxJzw0QmS7WNuSUjlWkE0g for ; Mon, 10 Aug 2020 03:00:10.129 +0000 (UTC) Date: Mon, 10 Aug 2020 03:00:10 +0000 (UTC) From: entpman@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 75354 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17110 X-Redmine-Issue-Author: theplen X-Redmine-Sender: theplen X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?u3J6FcLyubKYZW7UcsTESUt7toFgfsdsoaGdjebQpBQg7POrDXY7qi8Mecu2EH?= =?us-ascii?Q?Q406i+4AxZKbmjMqyqbAmEFddQZUjUVRCgXuWk1?= =?us-ascii?Q?KCcA2DTEohNjUW0o6Ow79UTwz7JslK7NM4rwk1A?= =?us-ascii?Q?N6Y30ng+H+IyPeGNQN=2FfWakbVHjj3YM1aosKaMd?= =?us-ascii?Q?f25qk6P+MbafcV3UwJfbyu+Fn3DUFS7D3yO6Jul?= =?us-ascii?Q?E8oVgpZikHD1Exy1I=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 99528 Subject: [ruby-core:99528] [Ruby master Bug#17110] String.tr unexpected behaviour with backslash X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #17110 has been reported by theplen (Joey Sheets). ---------------------------------------- Bug #17110: String.tr unexpected behaviour with backslash https://bugs.ruby-lang.org/issues/17110 * Author: theplen (Joey Sheets) * Status: Open * 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/