bug-gnulib
[Top][All Lists]
Advanced

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

Re: bug in join: case comparisons don't work in multibyte locales


From: Ben Pfaff
Subject: Re: bug in join: case comparisons don't work in multibyte locales
Date: Wed, 11 Mar 2009 08:39:24 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Bruno Haible <address@hidden> writes:

>                       | on NUL terminated    | on memory areas or
>                       | strings              | strings with embedded NULs
> ----------------------+----------------------+---------------------------
> For ASCII strings     | c_strcasecmp,        |
> only                  | STRCASEEQ            |
> ----------------------+----------------------+---------------------------
> For unibyte locales   | strcasecmp           | memcasecmp
> only                  |                      |
> ----------------------+----------------------+---------------------------
> Support for multibyte | mbscasecmp           | mbmemcasecmp
> locales               |                      |
>     ------------------+----------------------+---------------------------
>   + German, Greek etc.|                      | ulc_casecmp
> ----------------------+----------------------+---------------------------
> Support for multibyte |                      | mbmemcasecoll
> locales and locale    |                      |
> collation order       |                      |
>     ------------------+----------------------+---------------------------
>   + German, Greek etc.|                      | ulc_casecoll
> ----------------------+----------------------+---------------------------

Bruno, that's a nice diagram.  Could it be included in the gnulib
documentation somewhere, or perhaps as a comment in an
appropriate header file?
-- 
Ben Pfaff 
http://benpfaff.org





reply via email to

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