Markus Kuhn <[EMAIL PROTECTED]> writes:
> Definitely one of the more ugly sides of C. So even
>
> printf("%lc", L'EUR');
>
> would not be correct (because a wide character constant has type
> wchar_t)?
I think so. GCC even issues a warning in this situation.
> Do recent versions of gcc complain if the %lc argumend is not win_t?
On platforms where wint_t is a (possibly unsigned) int, GCC does not
complain. Apparently, there's no special logic to deal with such
situations in which the code does not result in undefined behavior on
the current platform, but is nevertheless not strictly conforming.
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/