wcrtomb: make multithread-safe

2020-01-07 Thread Bruno Haible
The wcrtomb override is using wctomb(), which is not guaranteed to be multithread-safe. Better use the original wcrtomb when possible. It's not possible on IRIX, but I don't want to invest much effort into this platform now. Tested on the relevant platforms: 32-bit AIX, HP-UX, IRIX, Solaris 11.3,

Re: Your gnulib patch

2020-01-07 Thread Jim Meyering
On Tue, Jan 7, 2020 at 4:41 PM Cong Wang wrote: > > On Fri, Jan 3, 2020 at 3:31 PM Jim Meyering wrote: > > > > On Fri, Jan 3, 2020 at 2:43 PM Cong Wang wrote: > > > > > > On Wed, Jan 1, 2020 at 7:41 PM Jim Meyering wrote: > > > > > > > > On Tue, Dec 24, 2019 at 11:13 AM Cong Wang > > > > wrot

Re: Your gnulib patch

2020-01-07 Thread Cong Wang
On Fri, Jan 3, 2020 at 3:31 PM Jim Meyering wrote: > > On Fri, Jan 3, 2020 at 2:43 PM Cong Wang wrote: > > > > On Wed, Jan 1, 2020 at 7:41 PM Jim Meyering wrote: > > > > > > On Tue, Dec 24, 2019 at 11:13 AM Cong Wang > > > wrote: > > > > Hello, Jim > > > > > > > > We found your gnulib patch >

Re: Debian Stretch: strndup.c build failure

2020-01-07 Thread Tim Rühsen
Hi Bruno, On 07.01.20 19:00, Bruno Haible wrote: >> with the latest gnulib (a7903da07d3d18c23314aa0815adbb4058fd7cec) on >> Debian Stretch: >> >> In file included from /usr/include/string.h:630:0, >> from ./string.h:41, >> from strndup.c:21: >> strndup.c:26:1: err

Re: Debian Stretch: strndup.c build failure

2020-01-07 Thread Bruno Haible
Hi Tim, > with the latest gnulib (a7903da07d3d18c23314aa0815adbb4058fd7cec) on > Debian Stretch: > > In file included from /usr/include/string.h:630:0, > from ./string.h:41, > from strndup.c:21: > strndup.c:26:1: error: expected identifier or '(' before '__extens

Re: Debian Stretch: strndup.c build failure

2020-01-07 Thread Tim Rühsen
On 1/7/20 3:24 PM, Tim Rühsen wrote: > Hi, > > with the latest gnulib (a7903da07d3d18c23314aa0815adbb4058fd7cec) on > Debian Stretch: > > In file included from /usr/include/string.h:630:0, > from ./string.h:41, > from strndup.c:21: > strndup.c:26:1: error: expect

FreeBSD 11.2: glthread build failure

2020-01-07 Thread Tim Rühsen
Hi, with the latest gnulib (a7903da07d3d18c23314aa0815adbb4058fd7cec) on FreeBSD 11.2-RELEASE-p4 (with clang 6.0): CCLD wget2 /usr/bin/ld: undefined reference to symbol `pthread_mutexattr_gettype@@FBSD_1.0' (try adding -lthr) //lib/libthr.so.3: could not read symbols: Bad value clang: error

Debian Stretch: strndup.c build failure

2020-01-07 Thread Tim Rühsen
Hi, with the latest gnulib (a7903da07d3d18c23314aa0815adbb4058fd7cec) on Debian Stretch: In file included from /usr/include/string.h:630:0, from ./string.h:41, from strndup.c:21: strndup.c:26:1: error: expected identifier or '(' before '__extension__' strndup (c