Skip to content

Detect all non-Polish locales in check_locale()#125

Open
SAY-5 wants to merge 1 commit into
bczernecki:masterfrom
SAY-5:fix-check-locale-non-polish
Open

Detect all non-Polish locales in check_locale()#125
SAY-5 wants to merge 1 commit into
bczernecki:masterfrom
SAY-5:fix-check-locale-non-polish

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jun 17, 2026

Copy link
Copy Markdown

Closes #124.

check_locale() only forced ASCII//TRANSLIT for two hardcoded locales (C.UTF-8 and en_US.iso885915), so other non-Polish locales like en_GB.UTF-8 slipped through and the IMGW files were read with the wrong encoding, failing later with a cryptic subscript-out-of-bounds error. This switches the check to detect any non-Polish locale instead of maintaining an incomplete blacklist, keeping pl_* and Windows Polish_* locales untouched. Added a regression test for a non-Polish locale.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
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.

Non-Polish system locale causes encoding failure with cryptic error message

1 participant