]> Pileus Git - ~andy/gtk/commitdiff
po: Fix xgettext failing on unicode strings
authorRico Tzschichholz <ricotz@t-online.de>
Tue, 4 Dec 2012 19:06:19 +0000 (20:06 +0100)
committerRico Tzschichholz <ricotz@t-online.de>
Tue, 4 Dec 2012 19:06:19 +0000 (20:06 +0100)
It is needed to use -from-code=utf-8 to override the ASCII default

Caused by ceb866dfe6be6d88b8f83a3cbdb8a2a688419c82

po-properties/Makefile.in.in
po/Makefile.in.in

index c168dc22ca3b6c84096287227b65e47eac02776c..9aa46174da9838ce338ae08935f1164474687cc0 100644 (file)
@@ -97,6 +97,7 @@ all-no:
 $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
        $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
          --add-comments --keyword --keyword=P_ \
+         --from-code=utf-8 \
          --files-from=$(srcdir)/POTFILES.in \
        && test ! -f $(GETTEXT_PACKAGE).po \
           || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
index 4e8ada3ff91ac4228a0981f1b685e6546c1ecafe..149721200ee51f3f2cc54a9b4f35abb5d8fcd890 100644 (file)
@@ -95,6 +95,7 @@ all-no:
 $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
        $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
          --add-comments --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 \
+         --from-code=utf-8 \
          --keyword=g_dngettext:2,3 \
          --flag=g_dngettext:2:pass-c-format \
           --flag=g_strdup_printf:1:c-format \