From: Ævar Arnfjörð Bjarmason Date: Sun, 29 Aug 2010 08:37:10 GMT Subject: Re: Odd encoding issue with UTF-8 + gettext yields ? on non-ASCII Message-ID: In-Reply-To: On Sun, Aug 29, 2010 at 07:36, Ævar Arnfjörð Bjarmason wrote: > We also have another bug, compiling git with > SNPRINTF_RETURNS_BOGUS=YesGNuIsBuggy and running "git show v0.99.6~1" > on our own repository causes a segfault, presumably due to the same > bug, but I didn't track it down further than this: I forgot to mention, compiling it with this partial revert of 107880a of course: diff --git a/gettext.c b/gettext.c index db99742..7ae5cae 100644 --- a/gettext.c +++ b/gettext.c @@ -19,2 +19,3 @@ extern void git_setup_gettext(void) { (void)setlocale(LC_MESSAGES, ""); + (void)setlocale(LC_CTYPE, ""); (void)textdomain("git");