On Sat, 14 Jul 2001, Florian Weimer wrote:
> > printf("%lc", 0x20ac);
>
> 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.
Definitely one of the more ugly sides of C. So even
printf("%lc", L'€');
would not be correct (because a wide character constant has type
wchar_t)?
Do recent versions of gcc complain if the %lc argumend is not win_t?
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/