MovingBlocks / Terasology

Terasology - open source voxel world
http://terasology.org
Apache License 2.0
3.64k stars 1.33k forks source link

Fix crash when system locale is complex #5158

Closed rzats closed 7 months ago

rzats commented 8 months ago

Contains

Fixes #5157. Detects if a locale looks like e.g. en_UA and converts it to e.g. en, preventing a game crash.

Also re-enables the ancient part-pirate localization by adding it to the "whitelist" of allowed locales.

How to test

Build from source with a "weird locale" (I did this on a non-M1/M2 Mac) and verify the game no longer crashes :)

soloturn commented 7 months ago

very cool @rzats, thank you!