From: "kddnewton (Kevin Newton) via ruby-core" Date: 2026-11-24T02:08:39+00:00 Subject: [ruby-core:127689] [Ruby Bug#22632] parse.y magic encoding comments accept NUL bytes Issue #22632 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #22632: parse.y magic encoding comments accept NUL bytes https://bugs.ruby-lang.org/issues/22632 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- I can't tell if this is intentional or not. It doesn't really seem like an issue either way, but I think it should reject NUL bytes as it's a bit odd. ```ruby # encoding: binary\0ignored ``` -- 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/