Skip to content

[pull] master from ruby:master#1143

Merged
pull[bot] merged 12 commits into
turkdevops:masterfrom
ruby:master
Jun 23, 2026
Merged

[pull] master from ruby:master#1143
pull[bot] merged 12 commits into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Jun 23, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nobu and others added 12 commits June 23, 2026 00:50
This isn't essential for correctness, however it's a natural time to
investigate whether the heap is in a correct state.
…re Ruby fallback

The snake_case aliases (escape_html, h, unescape_html) were defined
before `require 'cgi/escape.so'`, so they captured references to the
pure Ruby methods. After the C extension loads and prepends EscapeExt,
only the camelCase names (escapeHTML, etc.) resolved to the fast C
implementation — the aliases still called the ~10x slower Ruby path.

Move alias definitions after the C extension loads, and define them on
EscapeExt when available so they bind to the optimized C methods.

ruby/cgi@97b055dab04a
The ascii-compatible path builds a binary buffer but returned numeric
character references via chr(enc), so a non-ASCII replacement appended
to a buffer that already held non-ASCII bytes raised
Encoding::CompatibilityError. Decode into the binary buffer instead,
matching the C extension's optimized_unescape_html for out-of-range
references (kept verbatim, leading zeros included) and surrogate code
points (emitted as raw bytes).

ruby/cgi#103

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

ruby/cgi@09970b06d328
cargo builds in YJIT/ZJIT/Rust workflows intermittently fail when a
crates.io download is truncated (curl [16] HTTP/2 framing, [18] partial
transfer). Set CARGO_NET_RETRY and disable HTTP/2 multiplexing at the
workflow level so every job that compiles Rust is covered, not just the
zjit-ubuntu make job.

https://github.com/ruby/ruby/actions/runs/28014276636/job/82914636268

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Jun 23, 2026
@pull pull Bot added the ⤵️ pull label Jun 23, 2026
@pull pull Bot merged commit d844481 into turkdevops:master Jun 23, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants