Re: newlocale: Linux incompatibility

2023-03-25 Thread Corinna Vinschen via Cygwin
On Mar 25 13:03, Brian Inglis via Cygwin wrote: > On 2023-03-25 05:49, Corinna Vinschen via Cygwin wrote: > It looks like /proc/locales contains the same content as produced by locale > -a? Yes, locale -a actually opens /proc/locales to read the locales from the Cygwin core, just as it opens /pro

Re: newlocale: Linux incompatibility

2023-03-25 Thread Corinna Vinschen via Cygwin
On Mar 25 13:03, Brian Inglis via Cygwin wrote: > On 2023-03-25 05:49, Corinna Vinschen via Cygwin wrote: > > On Mar 24 16:49, Brian Inglis via Cygwin wrote: > > I never heard about an environment variable called LANGUAGE. This is > > about LANG/LC_ALL/LC_whatever, so POSIX syntax is required... >

Re: newlocale: Linux incompatibility

2023-03-25 Thread Brian Inglis via Cygwin
On 2023-03-25 05:49, Corinna Vinschen via Cygwin wrote: On Mar 24 16:49, Brian Inglis via Cygwin wrote: On 2023-03-24 06:18, Corinna Vinschen via Cygwin wrote: First, it's a bug in the Emacs testsuite. The test simply assumes that there's no en_DE locale on any system, but that's just not true

Re: newlocale: Linux incompatibility

2023-03-25 Thread Corinna Vinschen via Cygwin
On Mar 24 16:49, Brian Inglis via Cygwin wrote: > On 2023-03-24 06:18, Corinna Vinschen via Cygwin wrote: > > > First, it's a bug in the Emacs testsuite. The test simply assumes that > > > there's no en_DE locale on any system, but that's just not true. > > > Windows support the RFC 5646 locale "e

Re: newlocale: Linux incompatibility

2023-03-24 Thread Brian Inglis via Cygwin
On 2023-03-24 06:18, Corinna Vinschen via Cygwin wrote: On Mar 23 22:14, Corinna Vinschen via Cygwin wrote: On Mar 23 15:48, Ken Brown via Cygwin wrote: I'm reporting this here rather than the newlib list because the behavior is compatible with Posix but not Linux, so I think it's a Cygwin issu

Re: newlocale: Linux incompatibility

2023-03-24 Thread Corinna Vinschen via Cygwin
On Mar 24 09:57, Ken Brown via Cygwin wrote: > On 3/24/2023 8:18 AM, Corinna Vinschen via Cygwin wrote: > > On Mar 23 22:14, Corinna Vinschen via Cygwin wrote: > > > On Mar 23 15:48, Ken Brown via Cygwin wrote: > > > > Consider the following test case: > > > > > > > > $ cat locale_test.c > > > > #

Re: newlocale: Linux incompatibility

2023-03-24 Thread Ken Brown via Cygwin
On 3/24/2023 8:18 AM, Corinna Vinschen via Cygwin wrote: On Mar 23 22:14, Corinna Vinschen via Cygwin wrote: On Mar 23 15:48, Ken Brown via Cygwin wrote: Consider the following test case: $ cat locale_test.c #include #include int main () { const char *locale = "en_DE.UTF-8"; locale_t

Re: newlocale: Linux incompatibility

2023-03-24 Thread Corinna Vinschen via Cygwin
On Mar 23 22:14, Corinna Vinschen via Cygwin wrote: > On Mar 23 15:48, Ken Brown via Cygwin wrote: > > I'm reporting this here rather than the newlib list because the behavior is > > compatible with Posix but not Linux, so I think it's a Cygwin issue. > > Actually, it's a Windows issue :) > > > C

Re: newlocale: Linux incompatibility

2023-03-23 Thread Corinna Vinschen via Cygwin
On Mar 23 15:48, Ken Brown via Cygwin wrote: > I'm reporting this here rather than the newlib list because the behavior is > compatible with Posix but not Linux, so I think it's a Cygwin issue. Actually, it's a Windows issue :) > Consider the following test case: > > $ cat locale_test.c > #inclu

Re: newlocale: Linux incompatibility

2023-03-23 Thread Thomas Wolff via Cygwin
Am 23.03.2023 um 20:48 schrieb Ken Brown via Cygwin: I'm reporting this here rather than the newlib list because the behavior is compatible with Posix but not Linux, so I think it's a Cygwin issue. Consider the following test case: $ cat locale_test.c #include #include int main () {   con

newlocale: Linux incompatibility

2023-03-23 Thread Ken Brown via Cygwin
I'm reporting this here rather than the newlib list because the behavior is compatible with Posix but not Linux, so I think it's a Cygwin issue. Consider the following test case: $ cat locale_test.c #include #include int main () { const char *locale = "en_DE.UTF-8"; locale_t loc = newloc