Piotr Caban : kernel32: Restore C locale for LC_CTYPE category.
Chip Davis
cdavis at codeweavers.com
Wed Mar 20 10:02:47 CDT 2019
March 20, 2019 9:58 AM, "Ken Thomases" <ken at codeweavers.com> wrote:
> On Mar 20, 2019, at 8:28 AM, Piotr Caban <piotr.caban at gmail.com> wrote:
>
>> I've looked for the solution of this problem and I failed to find one that works with C locale. It
>> looks like XIM is not working when it's initialized in C or POSIX locale even if wchar_t or utf8
>> variant of lookup functions is used (XwcLookupString, Xutf8LookupString).
>
> […]
>> I see 2 possible solutions for that:
>> - go with the ascii_{tolower,toupper,strcasecmp,strncasecmp} helpers and use them instead of glibc
>> functions
>
> What about the xlocale functions (e.g. tolower_l())? If you pass a NULL locale_t to them, they
> operate in the C locale.
Only the POSIX ones do that. The Microsoft ones use the global locale. Also, I suspect those functions aren't available everywhere--even though POSIX 2008 has been a thing for over a decade.
>
> -Ken
Chip
More information about the wine-devel
mailing list