Skip to content

Fix Perl Encode MIME charset compatibility - #1898

Merged
fglock merged 3 commits into
masterfrom
fix/encode-mime-charset-compat
Oct 27, 2026
Merged

fglock merged 3 commits into
masterfrom
fix/encode-mime-charset-compat

Conversation

@fglock

@fglock fglock commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add Perl-compatible aliases for ANSI X3.4-1968, HZ-GB-2312, and ISO-8859-8-I.
  • Emit the Perl byte-order mark when encoding generic UTF-32 while leaving UTF-32BE/LE unchanged.
  • Add focused regression coverage and a changelog entry.

Closes #1897

Validation

  • Focused regression test: 12/12 pass on JVM and interpreter; also passes under system Perl and failed on both PerlOnJava backends before the fix.
  • MIME-Charset 1.013.1 suite: 105 tests pass on JVM and interpreter; optional t/05jp.t is skipped because Encode::EUCJPASCII is not installed.
  • nice -n 19 make: passed on the synchronized current-master tree.
  • nice -n 19 make check-links: passed.

codex added 3 commits October 27, 2026 11:08
Issue: #1897

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

Co-Authored-By: Codex <codex@openai.com>
Decode and encode HZ shift sequences separately from EUC-CN, preserving
Perl Encode alias caching. Cover HZ round trips and generic UTF-32 output.

Issue: #1897

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

Co-Authored-By: Codex <codex@openai.com>
Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock marked this pull request as ready for review October 27, 2026 11:04
@fglock
fglock merged commit af8167d into master Oct 27, 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.

Encode lacks Perl charset aliases and UTF-32 BOM behavior

2 participants