[UTF-8] Aspell and UTF-8/Unicode

Noah Levitt nlevitt@columbia.edu
Mon, 16 Feb 2004 14:36:05 -0500


On Mon, Feb 16, 2004 at 20:07:53 +0100, Elias Martenson wrote:
> 
> > g_utf8_strlen() returns the number of characters in the
> > g_utf8_find_next_char() does an equivalent operation.
> > g_utf8_next_char() is also useful.
> 
> What are the advantages of these compared to the standard libc calls?

The main thing is that they are locale-independent. The mb*
functions only handle UTF-8 in a UTF-8 locale, which
incidentally requires a UTF-8 locale to be installed on the
system (I think).

It only really makes sense to use the mb* functions if you
are taking the wchar_t approach to i18n, which has generally
fallen out of favor. 

Noah