Michael B Allen writes:
> Do the str* functions handle strings differently if the locale is
> different?

It depends on the functions.

strcpy strncpy strcat strncat strcmp strncmp strdup strchr strrchr
strcspn strspn strpbrk strstr strtok: NO

strcoll strxfrm: YES

strcasecmp: YES but doesn't work in multibyte locales.

> For example, does strcmp work on UTF-8 strings?

Not well. Better use strcoll.

Bruno
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to