f45bb9ba36 (master): Force binary encoding before matching in source_encoding_spec

0 views
Skip to first unread message

Hiroshi SHIBATA

unread,
Apr 19, 2026, 10:10:58 PM (2 days ago) Apr 19
to ruby...@g.ruby-lang.org
Hiroshi SHIBATA 2026-04-20 02:06:28 +0000 (Mon, 20 Apr 2026)

New Revision: f45bb9ba36

https://github.com/ruby/ruby/commit/f45bb9ba36

Log:
Force binary encoding before matching in source_encoding_spec

After the syntax_suggest sync at 23ea206a58d, raw source bytes leak
into SyntaxError output, which breaks the regex match on CI machines
running under LC_ALL=C where ruby_exe returns a US-ASCII string.

https://rubyci.s3.amazonaws.com/debian/ruby-master/log/20260420T003003Z.fail.html.gz
https://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20260419T230004Z.fail.html.gz
https://rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20260419T233005Z.fail.html.gz

Co-Authored-By: Claude Opus 4.7 (1M context) <nor...@anthropic.com>

Modified files:
spec/ruby/language/source_encoding_spec.rb
Reply all
Reply to author
Forward
0 new messages