bug-gnulib
[Top][All Lists]
Advanced

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

Re: setlocale with NULL locale (to read current locale) segfaults on MSY


From: Bruno Haible
Subject: Re: setlocale with NULL locale (to read current locale) segfaults on MSYS
Date: Mon, 02 May 2022 02:05:11 +0200

Reuben Thomas wrote:
> > In the end I tried something a bit different, which was to reduce the
> > > number of gnulib modules I was using, as for the code I'm writing it 
> > > seemed
> > > reasonable to assume C99 and POSIX.1-2008.
> >
> > ?? That makes no sense to me. Either you want to assume POSIX, or you want
> > to support native Windows. You can't do both at the same time.
> >
> 
> I am supporting MSYS, mingw32 and mingw64; all of those work fine if I
> assume POSIX.

It may be that your program and its test suite exercises only the most common
cases of the POSIX APIs; then you may get the impression that "it works fine".

We have documented hundreds of deficiencies of mingw [1] w.r.t. the POSIX
standard. MSYS is surely worse, not better, than mingw. I recommend to use
the respective modules, for those POSIX APIs that you use.

Bruno

[1] https://www.gnu.org/software/gnulib/manual/gnulib.html








reply via email to

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