Re: Is there some env variable like GIT_LANG (like LANG)?

6 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: Is there some env variable like GIT_LANG (like LANG)?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:50

Dirk Süsserott [off-list ref] writes:
What would you think of it?
Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
CVS_LANG and 47 different FROTZ_LANG environment variables.

I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
leave everything else in whatever locale the rest of the system is in.

Re: Is there some env variable like GIT_LANG (like LANG)?

From: Dirk Süsserott <hidden>
Date: 2016-06-15 22:50:50

Am 21.03.2011 20:43 schrieb Junio C Hamano:
Dirk Süsserott[off-list ref]  writes:
quoted
What would you think of it?
Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
CVS_LANG and 47 different FROTZ_LANG environment variables.

I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
leave everything else in whatever locale the rest of the system is in.
Ok. Accepted. Was just a question. I see your point.

Re: Is there some env variable like GIT_LANG (like LANG)?

From: Lasse Makholm <hidden>
Date: 2016-06-15 22:50:50

2011/3/21 Dirk Süsserott [off-list ref]:
Am 21.03.2011 20:43 schrieb Junio C Hamano:
quoted
Dirk Süsserott[off-list ref]  writes:
quoted
What would you think of it?
Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
CVS_LANG and 47 different FROTZ_LANG environment variables.

I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
leave everything else in whatever locale the rest of the system is in.
Ok. Accepted. Was just a question. I see your point.
Alternatively, you might like something like the following in your .bashrc:

function git
{
    LANG=C command git "$@"
}

-- 
/Lasse

Re: Is there some env variable like GIT_LANG (like LANG)?

From: Dirk Süsserott <hidden>
Date: 2016-06-15 22:50:50

Am 21.03.2011 21:30 schrieb Lasse Makholm:
2011/3/21 Dirk Süsserott[off-list ref]:
quoted
Am 21.03.2011 20:43 schrieb Junio C Hamano:
quoted
Dirk Süsserott[off-list ref]    writes:
quoted
What would you think of it?
Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
CVS_LANG and 47 different FROTZ_LANG environment variables.

I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
leave everything else in whatever locale the rest of the system is in.
Ok. Accepted. Was just a question. I see your point.
Alternatively, you might like something like the following in your .bashrc:

function git
{
     LANG=C command git "$@"
}
Hmm. Looks interesting. I'll try it out. I'm not so shell'ish (more 
perl'ish) but I expect that to "rename"/"alias" git to the given 
command. If it works, it's great. Thank you.

Re: Is there some env variable like GIT_LANG (like LANG)?

From: Lasse Makholm <hidden>
Date: 2016-06-15 22:50:50

2011/3/21 Dirk Süsserott [off-list ref]:
Am 21.03.2011 21:30 schrieb Lasse Makholm:
quoted
2011/3/21 Dirk Süsserott[off-list ref]:
quoted
Am 21.03.2011 20:43 schrieb Junio C Hamano:
quoted
Dirk Süsserott[off-list ref]    writes:
quoted
What would you think of it?
Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
CVS_LANG and 47 different FROTZ_LANG environment variables.

I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
leave everything else in whatever locale the rest of the system is in.
Ok. Accepted. Was just a question. I see your point.
Alternatively, you might like something like the following in your
.bashrc:

function git
{
    LANG=C command git "$@"
}
Hmm. Looks interesting. I'll try it out. I'm not so shell'ish (more
perl'ish) but I expect that to "rename"/"alias" git to the given command. If
it works, it's great. Thank you.
Just make sure you include the "command" part or the function will
call itself indefinitely...

-- 
/Lasse

Re: Is there some env variable like GIT_LANG (like LANG)?

From: Dirk Süsserott <hidden>
Date: 2016-06-15 22:50:51

Am 21.03.2011 21:48 schrieb Lasse Makholm:
quoted
quoted
Alternatively, you might like something like the following in your
.bashrc:

function git
{
     LANG=C command git "$@"
}
Just make sure you include the "command" part or the function will
call itself indefinitely...
That would be like my favourite forkbomb: ":(){ :|:& };:"
WARNING: Don't type that in the shell! The system hangs
immediately, even if it looks like only smileys.

Thanks a lot. It does exactly what I want. And it's a good
trick for other applications as well.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help