From: Ævar Arnfjörð Bjarmason Date: Mon, 30 Aug 2010 15:27:57 +0000 (+0000) Subject: Makefile: tell xgettext(1) that our source is in UTF-8 X-Git-Tag: ko-pu~10^2~151 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=13c65278d22e6c7f550a7a69889d2d8038000751;p=git.git Makefile: tell xgettext(1) that our source is in UTF-8 By default xgettext(1) assumes that source code is in US-ASCII, change that to UTF-8 for our case. I'm not planning to include non-ASCII in any of the main Git interface strings. But this'll be used for a gettext regression test to make sure this works if we ever want to go this route, and to check that the gettext implementation is sane in this regard. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/Makefile b/Makefile index 8650eb12e..8b895445f 100644 --- a/Makefile +++ b/Makefile @@ -2022,7 +2022,7 @@ cscope: $(RM) cscope* $(FIND) . -name '*.[hcS]' -print | xargs cscope -b -XGETTEXT_OPTIONS = --add-comments --msgid-bugs-address="Git Mailing List " +XGETTEXT_OPTIONS = --add-comments --msgid-bugs-address="Git Mailing List " --from-code=UTF-8 pot: $(XGETTEXT) $(XGETTEXT_OPTIONS) --keyword=_ --keyword=N_ --output=po/git.pot --language=C $(C_OBJ:o=c) t/t0200/test.c $(XGETTEXT) $(XGETTEXT_OPTIONS) --join-existing --output=po/git.pot --language=Shell $(SCRIPT_SH) t/t0200/test.sh