Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bindTextDomainCodeset function #26

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

e-rk
Copy link
Contributor

@e-rk e-rk commented Jan 5, 2025

The bindTextDomainCodeset allows the user to set a specific codeset for a given domain. This may be useful on systems, the where UTF-8 is not set as the default codeset but the UTF-8 encoding of gettext messages is needed.
One such example is having translated GUI labels in GTK4 on Windows, where GTK4 requires UTF-8 strings, but Windows is set to use region-specific codeset instead.

The bindTextDomainCodeset allows the user to set a specific codeset for
a given domain. This may be useful on systems, the where UTF-8 is not
set as the default codeset but the UTF-8 encoding of gettext messages
is needed.
One such example is having translated GUI labels in GTK4 on Windows,
where GTK4 requires UTF-8 strings, but Windows is set to use
region-specific codeset instead.
@NH002 NH002 merged commit 44dffa6 into haskell-hvr:master Jan 13, 2025
11 checks passed
@NH002
Copy link
Collaborator

NH002 commented Jan 13, 2025

Thanks for the code.

@NH002 NH002 mentioned this pull request Jan 13, 2025
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.

2 participants