Hi,
I was reading Markus's page and found the example:
printf("%ls\n", L"Schöne Grüße");
and noticed that gcc always interprets the source code according to Latin-1.
Then I googled a bit and found this reported to the gcc folks by Markus:
http://sources.redhat.com/ml/libc-alpha/2000-09/msg00337.html
However, this happened four years ago, and I haven't found more recent
pieces of information on this topic.
So my questions:
- Is there a proper solution where I can write my source code in UTF-8?
I have linux with gcc 3.3.4 and it's not necessary for the code to be
portable to older or different systems.
- Some people were discussing a cpp #pragma charset. Is it already
implemented? If yes, where can I find docs about it?
- Does recompiling gcc with --enable-c-mbchar solve this issue? Will gcc
then honour my locale settings? Is it a stable, ready-for-production-use
option of gcc?
- Are there any applications which are known to miscompile with a c-mbchar
gcc if I have a non-Latin1 (e.g. Latin-2 or UTF-8) locale settings?
thanks,
Egmont
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/