Sebastian Plotz wrote: > 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 > http://openbook.galileocomputing.de/c_von_a_bis_z/003_c_grundlagen_001.htm#mj6cc85534f12d7e0868b75171de8d087e). > > 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);
That's my point. A standard C program doesn't normally use utf-8. The programmer has to go out of his way to use it. The whole issue of the console configuration has to do with running applications on the console, not X or ssh based. How much do people do that any more? I'd say very few. That's not to say that we shouldn't try to get the information about consoles right. We should. However the consequences of getting it wrong are probably not significant. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
