On Sun, Jun 16, 2002 at 02:46:49PM -0400, Seer wrote: > > looking at glib 2.0.4 from gnome ftp, the criticisms are still > valid: it doesnt check for overcoded sequences (the UTF8_GET macro > (notice that the UNICODE_VALID macro seems essentially useless)) > g_utf8_get_char seems to have lost something in the conversion, > it no longer gives back an updated pointer, which would be useful > for iterating over a utf-8 string. > > also, its range of error return codes dont give the api user > enough information to layout a good error message. > > And, it has no support for string visible width computation, which > could easily be added. > > lastly, gunichar is unsigned. I was thinking it could be signed > for several reasons, such as using negatives for error codes... > > these functions are in such a fund amental part of the gnome > codebase, that it might be a good idea to iron them out, > but i dont imagine any changes being accepted before the big > release.
why not use wcwidth() ? it does what you request above. Kind regards Keld -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
