Edmund GRIMLEY EVANS <[EMAIL PROTECTED]> writes:
> What's the right prototype for wcwidth?
>
> http://www.opengroup.org/onlinepubs/007908799/xsh/wcwidth.html says:
>
> int wcwidth(wchar_t wc);
>
> glibc seems to prefer:
>
> int wcwidth(wint_t wc);
This is on my list of things to fix for the next revision of the Unix
standard. The correct type for all function parameters which a wide
characters in wint_t since this is designed to be the type equivalen
to int in the single-byte case, the one which due to automatic
promotion is used to pass the parameter.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/