Project

General

Profile

Actions

Bug #15839

closed

mixed encoding heredoc should be a syntax error regardless the order

Added by nobu (Nobuyoshi Nakada) about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:92608]

Description

This heredoc isn't a syntax error,

#encoding: cp932

p <<-STR
\xe9\x9d
\u1234
STR

whereas this is.

#encoding: cp932
"
\xe9\x9d
\u1234
"

Files

mixed-encoding-heredoc-fix.patch (5.28 KB) mixed-encoding-heredoc-fix.patch jeremyevans0 (Jeremy Evans), 05/15/2019 05:06 AM
mixed-encoding-heredoc-reverse-order-fix.patch (1.58 KB) mixed-encoding-heredoc-reverse-order-fix.patch jeremyevans0 (Jeremy Evans), 05/15/2019 03:15 PM
mixed-encoding-heredoc-fix-v2.patch (5.64 KB) mixed-encoding-heredoc-fix-v2.patch jeremyevans0 (Jeremy Evans), 05/15/2019 11:24 PM
Actions

Also available in: Atom PDF