[git] turn off localization

Brandon Allbery allbery.b at gmail.com
Sat Jul 28 18:32:01 PDT 2012

On Sat, Jul 28, 2012 at 9:29 PM, Richard L. Hamilton <rlhamil at smart.net>wrote:

> The usual way of communicating the desired locale, certainly for
> command-line programs, is by setting appropriate environment variables.
>  The lowest priority (overridden by any of the others where they conflict)
> is LANG, which applies to all categories of locale information not set with
> one of the other environment variables.  Then there are category-specific
> environment variables:
> LC_COLLATE collation sequence
> LC_CTYPE character classification
> LC_MESSAGES message text
> LD_MONETARY currency symbol and notation
> LC_NUMERIC preferred separator and decimal character
> LC_TIME preferred date and time formats

You could use aliases to automate this...

    $ alias git='env LC_ALL=C /opt/local/bin/git'

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120728/9adcd331/attachment.html>

More information about the macports-users mailing list