[PATCH/RFC 03/17] Makefile: tell xgettext(1) that our source is in UTF-8
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 30, 2010, 21:28 UTC
- Message-ID
- <1283203703-26923-4-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1283203703-26923-1-git-send-email-avarab@gmail.com>
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 <avarab@gmail.com> --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile index 4b46579..9818a59 100644 --- a/Makefile +++ b/Makefile @@ -2008,7 +2008,7 @@ cscope: $(RM) cscope* $(FIND) . -name '*.[hcS]' -print | xargs cscope -b -XGETTEXT_OPTIONS = --add-comments --msgid-bugs-address="Git Mailing List <git@vger.kernel.org>" +XGETTEXT_OPTIONS = --add-comments --msgid-bugs-address="Git Mailing List <git@vger.kernel.org>" --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
-- 1.7.2.2.536.g3f548