[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
setlocale: Handle LC_MESSAGES correctly on native Windows
From: |
Bruno Haible |
Subject: |
setlocale: Handle LC_MESSAGES correctly on native Windows |
Date: |
Mon, 23 Dec 2024 16:55:13 +0100 |
On native Windows, LC_MESSAGES does not exist in <locale.h>; Gnulib adds
a definition of it. Accordingly, setlocale() needs to be taught to handle
the LC_MESSAGES category as part of LC_ALL. The code for doing this was
incomplete.
The first of these patches fixes it. The second patch adds a unit test.
2024-12-23 Bruno Haible <bruno@clisp.org>
setlocale tests: Add unit test for LC_MESSAGES handling.
* tests/test-setlocale-w32.c: New file.
* modules/setlocale-tests (Files): Add it.
(Makefile.am): Arrange to compile and run test-setlocale-w32.
setlocale: Handle LC_MESSAGES correctly on native Windows.
* lib/setlocale.c (setlocale_improved): Revamp the LC_ALL case if
LC_MESSAGES is 1729.
0001-setlocale-Handle-LC_MESSAGES-correctly-on-native-Win.patch
Description: Text Data
0002-setlocale-tests-Add-unit-test-for-LC_MESSAGES-handli.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- setlocale: Handle LC_MESSAGES correctly on native Windows,
Bruno Haible <=