[devscripts] 01/01: test_mk-origtargz: Export LANG=C

Mattia Rizzolo mattia at mapreri.org
Sat Dec 5 13:40:45 UTC 2015


On Sat, Dec 05, 2015 at 01:17:07PM +0100, Jakub Wilk wrote:
> * James McCoy <jamessan at debian.org>, 2015-12-05, 01:56:
> >   test_mk-origtargz: Export LANG=C
> >
> >   Testing was broken in non-en_US locales due to different languages in
> >   the expected vs. actual output (seen in reproducible build
> >   testing).
> >
> >   Forcing LANG=C ensures consistent output regardless of the environment.
> 
> You should set LC_ALL, not LANG.
> LANG can be overridden by various LC_* variables;
> LC_ALL overrides them all.

And this is particularly true for

> -expected_files_after_removal=$(sort <<END
> +expected_files_after_removal=$(LANG=C sort <<END

AFAIK, LANG has no effects on `sort` behaviour.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20151205/025f69bd/attachment.sig>


More information about the devscripts-devel mailing list