From: merch-redmine@... Date: 2019-05-20T03:59:52+00:00 Subject: [ruby-core:92728] [Ruby trunk Bug#15839] mixed encoding heredoc should be a syntax error regardless the order Issue #15839 has been updated by jeremyevans0 (Jeremy Evans). nobu (Nobuyoshi Nakada) wrote: > Would you commit that patch by yourself? Assuming matz approves a commit bit for me at the next developer meeting, I would be happy to. ---------------------------------------- Bug #15839: mixed encoding heredoc should be a syntax error regardless the order https://bugs.ruby-lang.org/issues/15839#change-78087 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED ---------------------------------------- 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/ Unsubscribe: