bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: supporting in the UTF-8 environment on native Windows


From: Bruno Haible
Subject: Re: supporting in the UTF-8 environment on native Windows
Date: Wed, 25 Dec 2024 19:05:12 +0100

Lasse Collin wrote:
> Thanks. Isn't there a similar issue in setlocale.c after the commit
> 00211fc69c92?
> 
>       /* llCC_buf now contains
>            language[_territory][@modifier]
>        */
>       if (strcmp (llCC_buf, locale) != 0)
>         {
>           if (is_utf8)
>             {
>               char buf[64+6];
>               strcpy (buf, llCC_buf);
>               strcat (buf, ".65001");
>               result = setlocale (category, buf);
>             }
>           else
>             result = setlocale (category, llCC_buf);

Possibly. But I don't know whether Windows supports locale names with a
modifier at all; therefore it would require testing. And since I guess
that there are only few users of such a locale, this testing does not
have high priority.

> It's only a test program which doesn't affect the binaries being
> installed. As long as it works for testing I guess it's fine enough.

Yes, that's why I purposely kept things as simple as needed. For an
application with actual users, the XML file can be as complicated as
Microsoft wants it.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]