]> git.ipfire.org Git - thirdparty/gettext.git/commit
intl: Support the UTF-8 environment on native Windows.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Dec 2024 16:54:38 +0000 (17:54 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 24 Dec 2024 17:36:19 +0000 (18:36 +0100)
commit588c9adbca670b06a4f99486c88f2feefbb4c563
tree06300d3048071c9d5b51a827a83ff44b5155e5cf
parent37bb258d96e10042d8aa043d7bd90c8f2d33f9db
intl: Support the UTF-8 environment on native Windows.

Reported by Lasse Collin <lasse.collin@tukaani.org> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-12/msg00111.html>.

* gettext-runtime/intl/setlocale.c: Include <windows.h>.
(setlocale_unixlike): In the UTF-8 environment, append a suffix ".65001"
to the locale names passed to the native setlocale().
gettext-runtime/intl/setlocale.c