Skip to content

fix: infer correct locale on macOS and Windows - #6

Merged
aurelleb merged 1 commit into
mainfrom
fix/infer-system-locale
Aug 30, 2026
Merged

aurelleb merged 1 commit into
mainfrom
fix/infer-system-locale

Conversation

@aurelleb

Copy link
Copy Markdown
Contributor

Use CoreFoundation on macOS to get the user configured locale, otherwise it defaults to the C locale. This removes the need for callers to pass the locale themselves from their application framework (e.g QT).

Also tries to append .UTF-8 to the locale name if it cannot be found, and use the result if it succeeds. Generally useful on glibc systems.

Use CoreFoundation on macOS to get the user configured locale, otherwise
it defaults to the C locale. This removes the need for callers to pass
the locale themselves from their application framework (e.g QT).
@aurelleb
aurelleb merged commit 79d7a37 into main Aug 30, 2026
8 checks passed
@aurelleb
aurelleb deleted the fix/infer-system-locale branch August 30, 2026 12:00
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.

1 participant