From: usa@garbagecollect.jp
To: ruby-core@ruby-lang.org
Subject: [ruby-core:94572] [Ruby master Bug#15839] mixed encoding heredoc should be a syntax error regardless the order
Date: Mon, 26 Aug 2019 15:36:48 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-81030.20190826153647.fa91fcb96a35bc3a@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-15839.20190509064559@ruby-lang.org
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/
prev parent reply other threads:[~2019-08-26 15:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-15839.20190509064559@ruby-lang.org>
2019-05-09 6:45 ` [ruby-core:92608] [Ruby trunk Bug#15839] mixed encoding heredoc should be a syntax error regardless the order nobu
2019-05-15 5:13 ` [ruby-core:92650] " merch-redmine
2019-05-15 9:31 ` [ruby-core:92656] " nobu
2019-05-15 15:24 ` [ruby-core:92664] " merch-redmine
2019-05-15 23:24 ` [ruby-core:92673] " merch-redmine
2019-05-20 3:00 ` [ruby-core:92727] " nobu
2019-05-20 3:59 ` [ruby-core:92728] " merch-redmine
2019-08-01 13:56 ` [ruby-core:94096] [Ruby master " nagachika00
2019-08-26 15:36 ` usa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-81030.20190826153647.fa91fcb96a35bc3a@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).