[PATCH] run-tests: LANGUAGE may make tests fail

Benoit Boissinot benoit.boissinot at ens-lyon.org
Tue Nov 24 10:38:38 CST 2009


On Tue, Nov 24, 2009 at 01:57:13PM -0200, Wagner Bruna wrote:
> # HG changeset patch
> # User Wagner Bruna <wbruna at softwareexpress.com.br>
> # Date 1259078113 7200
> # Branch stable
> # Node ID e63ef7059143ccdf7f4689604895541d5d9cda54
> # Parent  5d748045c2aed9f9b74799c78dcbb6bdbec38657
> run-tests: LANGUAGE may make tests fail

I don't see anything about LANGUAGE here:
http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap08.html

Do you have an example where it fails? all localization should be
already overrident by LC_ALL+LANG.


> 
> diff --git a/tests/run-tests.py b/tests/run-tests.py
> --- a/tests/run-tests.py
> +++ b/tests/run-tests.py
> @@ -781,7 +781,7 @@
>  
>      # Reset some environment variables to well-known values so that
>      # the tests produce repeatable output.
> -    os.environ['LANG'] = os.environ['LC_ALL'] = 'C'
> +    os.environ['LANG'] = os.environ['LC_ALL'] = os.environ['LANGUAGE'] = 'C'
>      os.environ['TZ'] = 'GMT'
>      os.environ["EMAIL"] = "Foo Bar <foo.bar at example.com>"
>      os.environ['CDPATH'] = ''

regards,

Benoit

-- 
:wq


More information about the Mercurial-devel mailing list