Ticket 2722 (Mistake on the linux console page)

Sebastian Plotz sebastian-plotz at web.de
Tue Aug 17 14:25:00 PDT 2010

Am Dienstag, den 17.08.2010, 15:55 -0500 schrieb Bruce Dubbs:
> Hmm.  What charset am I using?

I guess that's the basic charset of ANSI C (see

The prototype of printf:

int printf(const char * restrict format, ... );

And it uses a char pointer (not a wchar_t pointer).

If you want to print a wchar_t, you have to do the following:

wchar_t ch = L'Z';

print("%lc", ch);

More information about the lfs-dev mailing list