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 818191F531 for ; Mon, 10 Aug 2020 03:01:30 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 91312120995; Mon, 10 Aug 2020 12:00:59 +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 BD484120978 for ; Mon, 10 Aug 2020 12:00:57 +0900 (JST) Received: by filterdrecv-p3las1-559bd7b968-682tx with SMTP id filterdrecv-p3las1-559bd7b968-682tx-19-5F30B885-87 2020-08-10 03:01:25.82533068 +0000 UTC m=+981924.803132481 Received: from herokuapp.com (unknown) by ismtpd0033p1iad2.sendgrid.net (SG) with ESMTP id Nv3SNXBoSKKqUldaTmIuBw for ; Mon, 10 Aug 2020 03:01:25.719 +0000 (UTC) Date: Mon, 10 Aug 2020 03:01:25 +0000 (UTC) From: entpman@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 75355 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?u3J6FcLyubKYZW7UcsTESUt7toFgfsdsoaGdjebQpBQIwA+hw+7E9X6zVxENHF?= =?us-ascii?Q?p1wA5NlIiH+48fHj9pBSXwrjK2hWDLwSAp=2FDl=2F5?= =?us-ascii?Q?cnKni42Wkmz15VKcTdjp1JkKJpEplUQ6+b6H8HH?= =?us-ascii?Q?aCNfQWPwe+mq=2F1GW9yhrmcxX2C7Iw+JQaoFssQa?= =?us-ascii?Q?ezmK=2F6qxj9GpjrtcvXgLjjitH=2FCoWmglzlaIkZm?= =?us-ascii?Q?zAymP9CbvEANUJPpE=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 99529 Subject: [ruby-core:99529] [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 updated by theplen (Joey Sheets). ``` ruby "\\".tr("\\","A") works great, with "\\" becoming "A" "\\".tr("\\C","AB") should also output "A" but instead outputs "\\" ``` ---------------------------------------- Bug #17110: String.tr unexpected behaviour with backslash https://bugs.ruby-lang.org/issues/17110#change-86989 * 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/