On Mon, 2012-12-10 at 17:28 +0000, Philip Withnall wrote: > Are there any reasons against putting UTF-8 characters in the source > code (which weren’t covered in my blog post)?
You can put UTF-8 in the source code, and GCC understands it just fine. http://gcc.gnu.org/onlinedocs/gcc-4.7.2/cpp/Implementation_002ddefined-behavior.html#Implementation_002ddefined-behavior See also "man gcc" and the options -finput-charset and -fexec-charset. Both default to UTF-8. That is, GCC will do this if it finds char *tomorrow_in_spanish = "mañana"; 1. See that it is a multibyte string, assume UTF-8 per default (-finput-charset). 2. Output the same UTF-8 string by default to the compiled file (-fexec-charset). TL;DR: It's 2012. The compiler understands UTF-8 and defaults to it. Use it :) Federico _______________________________________________ desktop-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/desktop-devel-list
