Project

General

Profile

Actions

Backport #6200

closed

Ripper uses wrong encoding for heredoc strings

Added by lsegal (Loren Segal) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
[ruby-core:43670]

Description

The following gist illustrates the issue: https://gist.github.com/2200383

Note that I just tried this in ruby-2.0.0dev (head) and it seems to work fine, but it fails in 1.9.3p125

Can this 2.0 fix to heredoc string encoding be backported?

Actions #1

Updated by nobu (Nobuyoshi Nakada) about 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35128.
Loren, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 33542,33543: [Backport #6200]

* parse.y (parser_nextc): set encoding for the buffer of ripper.
Actions

Also available in: Atom PDF

Like0
Like0