On Mon, Feb 25, 2002 at 02:38:13PM -0500, Michael B Allen wrote: > What's the ultimate goal here? Are any of these functions *supposed* > to work on multi-byte characters, or will there be mbs* functions?
I haven't tested this, nor really done anything relating to programming with i18n, but based on looking at man pages, you can use one of three functions (mbstowcs, mbsrtowcs, or mbsnrtowcs) to convert your multibyte string to a wide character string (an array of type wchar_t, one wchar_t per *character*), and then use the many wcs* functions to do various tests. My recollection of the consensus on this list is that for internal purposes, wchar_t is the way to go, and conversion to multibyte strings of char is necessary only for I/O, and there only when you can't use functions like fwprintf. However, wchar_t is only guaranteed to be Unicode (which encoding?) when the macro __STDC_ISO_10646__ is defined, as is done with glibc 2.2. Please, i18n/utf8 gurus, please correct the last few sentences! :-) - Jimmy Kaplowitz [EMAIL PROTECTED] -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/