From: Alex Riesen Date: Thu, 19 Jan 2012 09:24:35 GMT Subject: Re: [PATCH] i18n: disable i18n for shell scripts if NO_GETTEXT defined Message-ID: In-Reply-To: <7vfwfclf4v.fsf@alter.siamese.dyndns.org> On Thu, Jan 19, 2012 at 01:17, Junio C Hamano wrote: > So we need "MY_GETTEXT_IS_BROKEN" to decline the use of system gettext > in addition to "NO_GETTEXT" to ask Git not to translate the messages. Is > that correct? I think yes. > If that is the case, should we do something like > >        LANG=C LC_ALL=C >        export LANG LC_ALL > > in our shell scripts, when building for NO_GETTEXT target? Just for the record: gettext here stays broken with LANG and LC_ALL set to C. But the locale-dependent formatting in C functions will change. Wont be a problem here, though. The named formatting is broken, too: strftime, for instance, always formats in C locale.