2 Apr
2026
2 Apr
'26
6:46 p.m.
Issue #21980 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #21980: RubyVM::AST offsets are incorrect when BOM https://bugs.ruby-lang.org/issues/21980 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- When there is a BOM on a file, the offsets are incorrect for nodes. See: ``` RubyVM::AbstractSyntaxTree.parse("\xEF\xBB\xBF1").source # => "\xEF" ``` -- https://bugs.ruby-lang.org/