From: "kddnewton (Kevin Newton) via ruby-core" Date: 2026-04-02T18:46:08+00:00 Subject: [ruby-core:125183] [Ruby Bug#21980] RubyVM::AST offsets are incorrect when BOM 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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/