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: Reuben Thomas
Subject: Re: setlocale with NULL locale (to read current locale) segfaults on MSYS
Date: Sun, 1 May 2022 22:42:42 +0100

On Sun, 1 May 2022 at 22:34, Bruno Haible <bruno@clisp.org> wrote:
Reuben Thomas wrote:
> It's not really that I'm doing anything: gnulib seems to detect MSYS as
> being a POSIX platform.

Not really; something in the configure step (which you haven't shown)
made it "detect" some POSIX threads facility.

MSYS has a pthreads library, maybe it doesn't work well enough for gnulib. When I built for mingw32/64, I had no problem.


> 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.

--
https://rrt.sc3d.org

reply via email to

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