Re: cross compiling with current gnulib fails on strcasecmp

2025-04-11 Thread Bruno Haible via Gnulib discussion list
> strcasecmp: Support cross-compilation. A similar error is: checking whether newlocale with a null base works... configure: error: in '/GNULIB/testdir-all': configure: error: cannot run test program while cross compiling Fixed like this: 2025-04-11 Bruno Haible

Re: cross compiling with current gnulib fails on strcasecmp

2025-04-10 Thread Bruno Haible via Gnulib discussion list
Hi, Rudi Heitbaum wrote: > checking for strcasecmp... yes > checking whether strcasecmp works... configure: error: in > '/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/diffutils-3.12/.x86_64-libreelec-linux-gnu': > configure: error: c

cross compiling with current gnulib fails on strcasecmp

2025-04-10 Thread Rudi Heitbaum
strcasecmp... yes checking whether strcasecmp works... configure: error: in '/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/diffutils-3.12/.x86_64-libreelec-linux-gnu': configure: error: cannot run test program while cross compiling Regards Rudi

Re: work around bugs in strcasecmp and strncasecmp

2025-02-16 Thread Bruno Haible via Gnulib discussion list
The CI reports a compilation error on MSVC: D:\a\ci-testdir-check\ci-testdir-check\testdir-all\gltests\test-strcasecmp.c(22): error C2065: 'strcasecmp': undeclared identifier This patch fixes it. 2025-02-17 Bruno Haible strcasecmp, strncasecmp: Fix compilation err

work around bugs in strcasecmp and strncasecmp

2025-02-16 Thread Bruno Haible via Gnulib discussion list
I don't believe it. I just don't believe it. Solaris, with its fame of being seminal regarding internationalization, ships a buggy strcasecmp() function. The bug is reproducible in Solaris 10, Solaris 11.4, Solaris 11 OpenIndiana, Solaris 11 OmniOS. =

new modules strcasecmp, strncasecmp, c-strcasecmp, c-strncasecmp

2025-02-16 Thread Bruno Haible via Gnulib discussion list
The functions strcasecmp, strncasecmp are provided by a single module: 'strcase'. Similarly, the functions c_strcasecmp, c_strncasecmp are provided by a single module: 'c-strcase'. While this saves a little bit of module description and *.m4 code, it has two drawbacks:

Re: strcasecmp in regex

2012-06-26 Thread Bruno Haible
Hi Paul, > Shouldn't regex be avoiding strcasecmp entirely? > That is, couldn't there be a weird locale that considers > the lower-case equivalent of "U" to be "uu", or something > weird like that? In such a locale, strcasecmp would not consider "U

Re: strcasecmp on old platforms

2011-04-25 Thread Eric Blake
On 04/24/2011 06:13 AM, Bruno Haible wrote: > strcasecmp and strncasecmp are only missing on "old" platforms, according to > the platforms x functions matrix. Here's a proposed patch: > > > 2011-04-24 Bruno Haible > > strcase: Make module obsolet

Re: strcasecmp on old platforms

2011-04-24 Thread Bruno Haible
strcasecmp and strncasecmp are only missing on "old" platforms, according to the platforms x functions matrix. Here's a proposed patch: 2011-04-24 Bruno Haible strcase: Make module obsolete. * modules/strcase (Status, Notice): New fields. *** modules/strcase.

Re: strcasecmp

2010-01-07 Thread Bruno Haible
Eric Blake wrote: > The documentation was out-of-date. ... I'm pushing this. Thanks. One more clarification: All modern platforms have strcasecmp and strncasecmp. 2010-01-07 Bruno Haible * doc/posix-functions/strcasecmp.texi: Clarify the platforms. * doc/posix-f

Re: strcasecmp

2007-02-14 Thread Paolo Bonzini
The only reason for the case-insensitive comparison here is support for Windows-like file names, right? So the issue is not worth our worrying about (except perhaps as a warning that we should avoid case-insensitive comparison whenever we can :-). Not really. It's an option name, and options a

Re: fix 'exclude' module to avoid strcasecmp, but with performance problems

2007-02-14 Thread Bruno Haible
Paul Eggert wrote: > However, here I had some performance problems with mbscasemcp. Given > two multibyte strings A and B, I want to know whether A is an initial > prefix of B, ignoring case during comparison; also, if A is a prefix > of B, I need to know where in B the prefix ends (because I want

Re: remove strcasecmp from regex code; use localcharset instead

2007-02-14 Thread Bruno Haible
Paul Eggert wrote: > I installed this. It adds a dependency of regex on localcharset, Thanks. This improves regex on - Mingw, which doesn't have nl_langinfo(CODESET) and where the locale is usually set through system settings, not through environment variables, - Cygwin, where nl_langinfo

fix 'exclude' module to avoid strcasecmp, but with performance problems

2007-02-14 Thread Paul Eggert
I installed the following to fix the 'exclude' module to avoid strcasecmp, and to modernize it to support FNM_EXTMATCH. However, here I had some performance problems with mbscasemcp. Given two multibyte strings A and B, I want to know whether A is an initial prefix of B, ignoring c

remove strcasecmp from regex code; use localcharset instead

2007-02-14 Thread Paul Eggert
I installed this. It adds a dependency of regex on localcharset, which I'd rather avoid, but the alternatives seemed worse to me. 2007-02-14 Paul Eggert <[EMAIL PROTECTED]> Fix regex code so it doesn't rely on strcasecmp. * lib/regex_internal.h: Include

Re: strcasecmp

2007-02-14 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Paolo Bonzini wrote: >> I'm not sure how Turkish people would do lowercase translation >> of English words. In other words, I'm not sure if they'd write the >> hypothetical language Iris as İRİS or ırıs. > > This is one question to ask. The other consi

Re: strcasecmp

2007-02-14 Thread Paolo Bonzini
This consideration points to using (a) c_strcasecmp (a, b) or (b) c_strcasecmp (a, b) || mbscasecmp (a, b). If your Turkish friend says he would write "ırıs", then it points to (b). If not, i.e. if such a word is not considered like a Turkish word, it points to (a). I haven't asked ye

Re: strcasecmp

2007-02-14 Thread Bruno Haible
) or (b) c_strcasecmp (a, b) || mbscasecmp (a, b). If your Turkish friend says he would write "ırıs", then it points to (b). If not, i.e. if such a word is not considered like a Turkish word, it points to (a). Btw, mbscasecmp not strcasecmp - because strcasecmp cannot work in Tu

Re: strcasecmp

2007-02-14 Thread Paolo Bonzini
case translation of English words. In other words, I'm not sure if they'd write the hypothetical language Iris as İRİS or ırıs. By the way, note that the one whose pronunciation is closest to /i/, is the dotted İ/i, not the dotless I/ı. I don't think it's exact to say,