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-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 E10E81F461 for ; Mon, 26 Aug 2019 15:36:58 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id E791B120B48; Tue, 27 Aug 2019 00:36:51 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id C9408120962 for ; Tue, 27 Aug 2019 00:36:49 +0900 (JST) Received: by filter0041p3iad2.sendgrid.net with SMTP id filter0041p3iad2-27672-5D63FC90-1C 2019-08-26 15:36:48.301259997 +0000 UTC m=+917691.685129899 Received: from herokuapp.com (unknown [3.82.112.209]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id d1xBTjHsRrWuIx5uksrK4A for ; Mon, 26 Aug 2019 15:36:48.194 +0000 (UTC) Date: Mon, 26 Aug 2019 15:36:48 +0000 (UTC) From: usa@garbagecollect.jp Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70124 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15839 X-Redmine-Issue-Author: nobu X-Redmine-Sender: usa 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?9Ij0W+xF+66shKwcOf8RvdqxJGkEJjaCZuueI4cieuB4L+=2FiLBsBIlhBWyEBUO?= =?us-ascii?Q?IfHeQxt0tFuaxRfaM1EOr8r8tcwlJFJauZNJr5n?= =?us-ascii?Q?OlNLEvyFSMx0p3q6h5yolmd2xw1ycyqSTSZ91zh?= =?us-ascii?Q?Hblm0XvKmzbgOth06r8vISnPaae7TpLOfRy9hzp?= =?us-ascii?Q?3GKp6OEjr9ctnQzuYV71ADQVwHneSPxfUiQ=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 94572 Subject: [ruby-core:94572] [Ruby master Bug#15839] mixed encoding heredoc should be a syntax error regardless the order 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 #15839 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE to 2.4: REQUIRED, 2.5: DONE, 2.6: DONE ruby_2_5 r67763 merged revision(s) 6375c68f8851e1e0fee8a95afba91c4555097127,c05eaa93258ddc01e685b6cc3a0da82998a2af48. ---------------------------------------- Bug #15839: mixed encoding heredoc should be a syntax error regardless the order https://bugs.ruby-lang.org/issues/15839#change-81030 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.4: REQUIRED, 2.5: DONE, 2.6: DONE ---------------------------------------- This heredoc isn't a syntax error, ```ruby #encoding: cp932 p <<-STR \xe9\x9d \u1234 STR ``` whereas this is. ```ruby #encoding: cp932 " \xe9\x9d \u1234 " ``` ---Files-------------------------------- mixed-encoding-heredoc-fix.patch (5.28 KB) mixed-encoding-heredoc-reverse-order-fix.patch (1.58 KB) mixed-encoding-heredoc-fix-v2.patch (5.64 KB) -- https://bugs.ruby-lang.org/