Skip to content

fix: support Encode XS onBOOT callback - #1882

Merged
fglock merged 2 commits into
masterfrom
fix/encode-onboot-compatibility
Oct 24, 2026
Merged

fglock merged 2 commits into
masterfrom
fix/encode-onboot-compatibility

Conversation

@fglock

@fglock fglock commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Register the onBOOT callback that newer host Encode.pm invokes after XSLoader::load.
  • Treat the callback as a no-op because PerlOnJava completes Encode initialization in its Java module initializer.
  • Add coverage for the strict-subs compilation path.

Validation

  • nice -n 19 make — passed.
  • prove -v src/test/resources/unit/encode_xsloader_onboot.t — passed on system Perl.
  • timeout 90 ./jperl src/test/resources/unit/encode_xsloader_onboot.t — passed.
  • timeout 90 ./jperl --interpreter src/test/resources/unit/encode_xsloader_onboot.t — passed.

Resolves the Encode compatibility failure observed while loading host CPAN modules. Devel::Size remains unported and is tracked separately in #1880.

fglock and others added 2 commits October 24, 2026 13:48
Resolve nested PerlOnJava launches from the active Java command after %ENV is
cleaned, publish LC_TIME for I18N::Langinfo, load IO::Seekable explicitly
before FileHandle method aliasing, and bundle User::pwent/User::grent with the
Config feature probes they require. Add focused unit coverage for each path
and document the compatibility fixes.

Generated with [Codex](https://openai.com/codex/)

Co-Authored-By: Codex <codex@openai.com>
Register the callback expected by newer Encode.pm after XSLoader::load.
Its initialization work is already covered by the Java module initializer.
Add a regression test for the strict-subs compilation path.

Generated with [OpenAI Codex](https://openai.com/codex)

Co-Authored-By: OpenAI Codex <codex@openai.com>
@fglock
fglock merged commit 674f1ec into master Oct 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant