From: "steviejj (Steven Johnstone) via ruby-core" Date: 2026-11-18T12:28:26+00:00 Subject: [ruby-core:127582] [Ruby Bug#22600] parse.y corrupts line-1 heredoc delimiter/resume offset by 3 bytes after a UTF-8 BOM Issue #22600 has been reported by steviejj (Steven Johnstone). ---------------------------------------- Bug #22600: parse.y corrupts line-1 heredoc delimiter/resume offset by 3 bytes after a UTF-8 BOM https://bugs.ruby-lang.org/issues/22600 * Author: steviejj (Steven Johnstone) * Status: Open * ruby -v: ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [arm64-darwin27] * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- When a Ruby script or `eval` string starts with a UTF-8 BOM (`\xEF\xBB\xBF`) and declares a heredoc on line 1 (e.g. `\xEF\xBB\xBF<