Skip to content

[BUGFIX] Use ASCII case conversion in AtlasText to fix Turkish-locale glyph misses#7639

Open
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/atlastext-turkish-locale-case
Open

[BUGFIX] Use ASCII case conversion in AtlasText to fix Turkish-locale glyph misses#7639
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/atlastext-turkish-locale-case

Conversation

@VICK-sys

Copy link
Copy Markdown

Linked Issues

#6700

Description

Fixes text rendering on Linux + Turkish locale (tr_TR.UTF-8), where letters I/i (and similar) failed to render. Reporter independently diagnosed it: LANG=C makes it work.

AtlasText.restrictCase calls String.toUpperCase() / toLowerCase(). On hxcpp these go through the C++ stdlib which is locale-aware. In Turkish, "i".toUpperCase() returns "İ" (dotted I) and "I".toLowerCase() returns "ı" (dotless i). The font atlas only has ASCII glyphs, so the lookup misses and the character disappears.

Screenshots/Videos

@github-actions github-actions Bot added size: medium A medium pull request with 100 or fewer changes. pr: haxe PR modifies game code. status: pending triage Awaiting review. and removed size: medium A medium pull request with 100 or fewer changes. labels May 27, 2026
@Hundrec Hundrec added type: minor bug Involves a minor bug or issue. size: medium A medium pull request with 100 or fewer changes. labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

Bug Report: Letter "I" on Turkish language systems (Linux) doesn't work, Escape (ESC) button is unbindable

2 participants