Project

General

Profile

Actions

Bug #15839

closed

mixed encoding heredoc should be a syntax error regardless the order

Added by nobu (Nobuyoshi Nakada) almost 5 years ago. Updated over 4 years ago.

Status:
Closed
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

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0