Author: sveinung Date: Thu Oct 22 11:08:49 2015 New Revision: 30163 URL: http://svn.gna.org/viewcvs/freeciv?rev=30163&view=rev Log: i18n: the Freeciv source files are UTF-8
The --from-code option was introduced in gettext version 0.12. Use it to make gettext aware that the Freeciv input source files are encoded using UTF-8. This makes it safe, as far as gettext is concerned, to use non ASCII UTF-8 characters in translation comments and msgids. Note that nothing is being changed for the C compiler. There is still a risk that non ASCII characters in string literals are reencoded during the compilation. A C string literal msgid should therefore avoid using non ASCII UTF-8 characters. See patch #6451 Modified: branches/S2_6/configure.ac Modified: branches/S2_6/configure.ac URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/configure.ac?rev=30163&r1=30162&r2=30163&view=diff ============================================================================== --- branches/S2_6/configure.ac (original) +++ branches/S2_6/configure.ac Thu Oct 22 11:08:49 2015 @@ -519,6 +519,7 @@ AM_XGETTEXT_OPTION([--language=C]) AM_XGETTEXT_OPTION([--escape]) AM_XGETTEXT_OPTION([--add-comments="TRANS:"]) +AM_XGETTEXT_OPTION([--from-code=UTF-8]) PKG_PROG_PKG_CONFIG if test "x$PKG_CONFIG" = "x" ; then _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits