Skip to content

Fix cjk codec import exception behavior for charset-normalizer compatibility#721

Closed
timfel wants to merge 1 commit intomasterfrom
fix-cjk-codec-importerror
Closed

Fix cjk codec import exception behavior for charset-normalizer compatibility#721
timfel wants to merge 1 commit intomasterfrom
fix-cjk-codec-importerror

Conversation

@timfel
Copy link
Copy Markdown
Member

@timfel timfel commented Apr 2, 2026

cjkcodecs.getcodec() now raises ImportError instead of LookupError for unsupported codecs, making behavior compatible with CPython and libraries like charset-normalizer/vader_sentiment.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 2, 2026
@graalvmbot graalvmbot closed this Apr 2, 2026
@graalvmbot graalvmbot deleted the fix-cjk-codec-importerror branch April 2, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants