Successors to convert strings instead of just isolated "characters" (sorry,
they are NOT what we need to handle "texts", they are not even equivalent
to Unicode characters, they are just code units, most often 8-bit with
"char" or 16-bit only with "wchar_t" !) already exist in all C libraries
(including glibc), under different names unfortunately (this is the main
cause why there are complex header files trying to find the appropriate
name, and providing a "default" basic implementation that just scans
individual characters to filter them with tolower and toupper: this is a
Good libraries should all contain a safe implementation of case conversion
of strings, and softwares should use them (and not reinvent this old bad
trick, just because this works with basic English).
2014-11-10 13:41 GMT+01:00 Steffen Nurpmeso <sdaoden_at_yandex.com>:
> Philippe Verdy <verdy_p_at_wanadoo.fr> wrote:
> |glibc is not more borken and any other C library implementing toupper and
> |tolower from the legacy "ctype" standard library. These are old APIs that
> |are just widely used and still have valid contexts were they are simple
> |safe to use. But they are not meant to convert text.
> Hah! Legacy is good.. I'd wish a usable successor were already
> standardized by ISO C.
> Unicode mailing list
Unicode mailing list
Received on Mon Nov 10 2014 - 12:12:16 CST
This archive was generated by hypermail 2.2.0 : Mon Nov 10 2014 - 12:12:16 CST