Project

General

Profile

Actions

Bug #21980

open

RubyVM::AST offsets are incorrect when BOM

Bug #21980: RubyVM::AST offsets are incorrect when BOM

Added by kddnewton (Kevin Newton) about 17 hours ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:125183]

Description

When there is a BOM on a file, the offsets are incorrect for nodes. See:

RubyVM::AbstractSyntaxTree.parse("\xEF\xBB\xBF1").source # => "\xEF"

No data to display

Actions

Also available in: PDF Atom