"H. Peter Anvin" <[EMAIL PROTECTED]> writes:
>> > if (printf("%lc", 0x20ac) < 0) /* try C's multibyte output mechanism */
>>
>> Speaking of portability, isn't a cast to wint_t missing here?
> wchar_t you mean?
The %lc format specifier requires an argument of type wint_t, and this
type doesn't have to be compatible (in this context) with both the
type of an integer constant literal, or such a literal cast to the
type wchar_t, even after default promotion.
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/