* [PATCH] explicitly set LANG to 'C' in for guilt run-tests
@ 2008-09-29 18:51 Scott Moser
2008-09-29 20:25 ` Mikael Magnusson
0 siblings, 1 reply; 5+ messages in thread
From: Scott Moser @ 2008-09-29 18:51 UTC (permalink / raw)
To: Josef "Jeff" Sipek; +Cc: git, Scott Moser
The output of guilt's run-tests is dependent on LANG due to reliance on a
given sorting algorithm. Currently, the test '052' will fail if LANG is
set to 'en_US.UTF-8' (and likely others values).
Remove the assumption by explicitly setting this in run-tests.
Signed-off-by: Scott Moser <smoser@brickies.net>
---
regression/run-tests | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/regression/run-tests b/regression/run-tests
index 8f572eb..945150b 100755
--- a/regression/run-tests
+++ b/regression/run-tests
@@ -2,6 +2,7 @@
export REG_DIR="$PWD"
export PATH="$PWD/bin:$PATH"
+export LANG=C
source scaffold
--
1.5.6.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] explicitly set LANG to 'C' in for guilt run-tests
2008-09-29 18:51 [PATCH] explicitly set LANG to 'C' in for guilt run-tests Scott Moser
@ 2008-09-29 20:25 ` Mikael Magnusson
2008-09-29 20:49 ` Josef Jeff Sipek
2008-09-30 4:42 ` Josef 'Jeff' Sipek
0 siblings, 2 replies; 5+ messages in thread
From: Mikael Magnusson @ 2008-09-29 20:25 UTC (permalink / raw)
To: Scott Moser; +Cc: Josef Jeff Sipek, git
2008/9/29 Scott Moser <smoser@brickies.net>:
> The output of guilt's run-tests is dependent on LANG due to reliance on a
> given sorting algorithm. Currently, the test '052' will fail if LANG is
> set to 'en_US.UTF-8' (and likely others values).
>
> Remove the assumption by explicitly setting this in run-tests.
>
> Signed-off-by: Scott Moser <smoser@brickies.net>
> ---
> regression/run-tests | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/regression/run-tests b/regression/run-tests
> index 8f572eb..945150b 100755
> --- a/regression/run-tests
> +++ b/regression/run-tests
> @@ -2,6 +2,7 @@
>
> export REG_DIR="$PWD"
> export PATH="$PWD/bin:$PATH"
> +export LANG=C
>
> source scaffold
>
> --
> 1.5.6.3
If I'm not mistaken, $LANG is used as the ultimate fallback, while LC_ALL is
the one that overrides all others, so you probably want to set LC_ALL. I'm
unsure which off the specific ones would apply here, but very likely it's
LC_COLLATE. In other words, if LC_ALL is set, it is used, otherwise if
LC_COLLATE is set it is used, otherwise if LANG is set, it is used,
otherwise, "POSIX" is used.
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] explicitly set LANG to 'C' in for guilt run-tests
2008-09-29 20:25 ` Mikael Magnusson
@ 2008-09-29 20:49 ` Josef Jeff Sipek
2008-09-29 21:01 ` Scott Moser
2008-09-30 4:42 ` Josef 'Jeff' Sipek
1 sibling, 1 reply; 5+ messages in thread
From: Josef Jeff Sipek @ 2008-09-29 20:49 UTC (permalink / raw)
To: Mikael Magnusson; +Cc: Scott Moser, git
On Mon, Sep 29, 2008 at 10:25:48PM +0200, Mikael Magnusson wrote:
> 2008/9/29 Scott Moser <smoser@brickies.net>:
> > The output of guilt's run-tests is dependent on LANG due to reliance on a
> > given sorting algorithm. Currently, the test '052' will fail if LANG is
> > set to 'en_US.UTF-8' (and likely others values).
> >
> > Remove the assumption by explicitly setting this in run-tests.
> >
> > Signed-off-by: Scott Moser <smoser@brickies.net>
> > ---
> > regression/run-tests | 1 +
> > 1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/regression/run-tests b/regression/run-tests
> > index 8f572eb..945150b 100755
> > --- a/regression/run-tests
> > +++ b/regression/run-tests
> > @@ -2,6 +2,7 @@
> >
> > export REG_DIR="$PWD"
> > export PATH="$PWD/bin:$PATH"
> > +export LANG=C
> >
> > source scaffold
> >
> > --
> > 1.5.6.3
>
> If I'm not mistaken, $LANG is used as the ultimate fallback, while LC_ALL is
> the one that overrides all others, so you probably want to set LC_ALL. I'm
> unsure which off the specific ones would apply here, but very likely it's
> LC_COLLATE. In other words, if LC_ALL is set, it is used, otherwise if
> LC_COLLATE is set it is used, otherwise if LANG is set, it is used,
> otherwise, "POSIX" is used.
IIRC, my devel system has all of them set to UTF8, _except_ LC_COLLATE (I
like the case sensitive sort of filenames in ls(1)) which I have set to "C".
So chances are that the minimum required is LC_COLLATE=C, but overriding
everything might be safer overall.
Josef 'Jeff' Sipek.
--
Penguin : Linux version 2.6.25.4 on an i386 machine (6135.73 BogoMips).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] explicitly set LANG to 'C' in for guilt run-tests
2008-09-29 20:49 ` Josef Jeff Sipek
@ 2008-09-29 21:01 ` Scott Moser
0 siblings, 0 replies; 5+ messages in thread
From: Scott Moser @ 2008-09-29 21:01 UTC (permalink / raw)
To: Josef Jeff Sipek; +Cc: Mikael Magnusson, git
On Mon, 29 Sep 2008, Josef Jeff Sipek wrote:
> > If I'm not mistaken, $LANG is used as the ultimate fallback, while LC_ALL is
> > the one that overrides all others, so you probably want to set LC_ALL. I'm
> > unsure which off the specific ones would apply here, but very likely it's
> > LC_COLLATE. In other words, if LC_ALL is set, it is used, otherwise if
> > LC_COLLATE is set it is used, otherwise if LANG is set, it is used,
> > otherwise, "POSIX" is used.
>
> IIRC, my devel system has all of them set to UTF8, _except_ LC_COLLATE (I
> like the case sensitive sort of filenames in ls(1)) which I have set to "C".
> So chances are that the minimum required is LC_COLLATE=C, but overriding
> everything might be safer overall.
>
Yeah, LC_ALL I sprobably correct. I'm not very "LANG" aware at all. I
just noticed that test 052 didn't run on my system, and figured out that
was why.
You want a re-send of this patch with LC_ALL ? Or do you want to make
the modification yourself and apply?
Scott
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] explicitly set LANG to 'C' in for guilt run-tests
2008-09-29 20:25 ` Mikael Magnusson
2008-09-29 20:49 ` Josef Jeff Sipek
@ 2008-09-30 4:42 ` Josef 'Jeff' Sipek
1 sibling, 0 replies; 5+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-09-30 4:42 UTC (permalink / raw)
To: Mikael Magnusson; +Cc: Scott Moser, git
On Mon, Sep 29, 2008 at 10:25:48PM +0200, Mikael Magnusson wrote:
...
> If I'm not mistaken, $LANG is used as the ultimate fallback, while LC_ALL is
> the one that overrides all others, so you probably want to set LC_ALL. I'm
> unsure which off the specific ones would apply here, but very likely it's
> LC_COLLATE. In other words, if LC_ALL is set, it is used, otherwise if
> LC_COLLATE is set it is used, otherwise if LANG is set, it is used,
> otherwise, "POSIX" is used.
I fixed up the patch to set LC_ALL instead, and committed it.
Thanks,
Josef 'Jeff' Sipek.
--
Humans were created by water to transport it upward.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-30 4:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-29 18:51 [PATCH] explicitly set LANG to 'C' in for guilt run-tests Scott Moser
2008-09-29 20:25 ` Mikael Magnusson
2008-09-29 20:49 ` Josef Jeff Sipek
2008-09-29 21:01 ` Scott Moser
2008-09-30 4:42 ` Josef 'Jeff' Sipek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).