Backport #6069
closed
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r34776.
_, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- parse.y (parser_tokadd_string, parser_yylex): insert a backslash
if the next character is non-ascii. [ruby-dev:45278] [Bug #6069]
- Category set to core
- Status changed from Closed to Open
- Assignee set to nobu (Nobuyoshi Nakada)
r34776 での対応はダブルクオートも含めて文字列リテラル内の non-ascii 文字の前のバックスラッシュは残すようになっていると思うのですが、このチケットの意図としては ascii 文字の時と同じくダブルクオートの時は消す、シングルクオートの時は残す、という挙動をして欲しいということではないでしょうか?
"\z" # => "z"
'\z' # => "\z"
ということで reopen します。
- Status changed from Open to Closed
This issue was solved with changeset r34796.
_, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- parse.y (parser_tokadd_string): insert a backslash only if
quoted by single quotes. [ruby-dev:45281] [Bug #6069]
- Tracker changed from Bug to Backport
- Project changed from Ruby master to Backport193
- Category deleted (
core)
- Status changed from Closed to Assigned
r34776 はバックポートされているようですので(ありがとうございます)、
r34796 も同様にバックポートしていただけるとありがたいです。
- Status changed from Assigned to Closed
This issue was solved with changeset r35643.
_, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 34796:
* parse.y (parser_tokadd_string): insert a backslash only if
quoted by single quotes. [ruby-dev:45281] [Bug #6069]
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0