Re: bug#6327: sort fails on some UTF-8 input

2010-06-02 Thread Eric Blake
[redirecting to bug-gnulib] On 06/02/2010 01:37 PM, Paul Eggert wrote: > On 06/01/2010 09:51 PM, River Tarnell wrote: >> I'm using coreutils 8.5 on Solaris 10. >> >> GNU 'sort' fails to sort some input, while Solaris 'sort' handles it >> correctly: > > Amusingly enough, on that same test case I f

[PATCH] time: work with mingw + pthreads-win32 library

2010-06-02 Thread Eric Blake
When using the pthreads-win32 library with mingw, struct timespec is available in . Meanwhile, that header has some rather buggy macros for localtime_r and gmtime_r that interfere with proper gnulib replacement header actions. Tested in a cross-compilation environment: Fedora 13 with mingw32-gcc

Re: mingw, ptw32, and struct timespec

2010-06-02 Thread Jim Meyering
Eric Blake wrote: > On 06/02/2010 10:50 AM, Eric Blake wrote: >> I'm getting a compilation failure when trying to cross-compile from >> Linux to mingw, because I have the mingw pthreads-win32 (ptw32) library >> installed (Fedora 13 system, with mingw32-pthreads and mingw32-gcc >> packages). The p

Re: mingw, ptw32, and struct timespec

2010-06-02 Thread Eric Blake
On 06/02/2010 10:50 AM, Eric Blake wrote: > I'm getting a compilation failure when trying to cross-compile from > Linux to mingw, because I have the mingw pthreads-win32 (ptw32) library > installed (Fedora 13 system, with mingw32-pthreads and mingw32-gcc > packages). The ptw32 library installs a p

mingw, ptw32, and struct timespec

2010-06-02 Thread Eric Blake
I'm getting a compilation failure when trying to cross-compile from Linux to mingw, because I have the mingw pthreads-win32 (ptw32) library installed (Fedora 13 system, with mingw32-pthreads and mingw32-gcc packages). The ptw32 library installs a pthread.h that blindly defines struct timespec if H

Re: gnulib is not running for me

2010-06-02 Thread Markus Steinborn
Hi Bruno, Bruno Haible wrote: Took me a while to see the problem: The gnulib .c files (getopt.c in this case) do a #include and expect this config.h to contain the definitions of _GNU_SOURCE and HAVE_* and what else, determined by configure. But in your sources, this file is called, and contai

Re: bug#6327: sort fails on some UTF-8 input

2010-06-02 Thread Eric Blake
[adding gnulib] On 06/01/2010 10:51 PM, River Tarnell wrote: > I'm using coreutils 8.5 on Solaris 10. > > GNU 'sort' fails to sort some input, while Solaris 'sort' handles it > correctly: > > willow% /opt/ts/gnu/bin/sort sort_test.txt > /opt/ts/gnu/bin/sort: string comparison failed: Illegal by