# HG changeset patch # User mpm@selenic.com # Date 1119939733 28800 # Node ID 77c66c4eec0e482c8a6d04a6b95b6c4b14fbe032 # Parent 2ad41189bee527b5a2014f8208d182cb85290fdc [PATCH] Set locale before run-tests does anything -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Set locale before run-tests does anything From: Bryan O'Sullivan On Mon, 2005-06-27 at 11:58 -0700, Bryan O'Sullivan wrote: > I'm in en_us.UTF-8. This discrepancy between my locale and Matt's broke several tests for me, by the way. I think that the run-tests script should forcibly set the locale to either "C" or "en_us.UTF-8" before it runs anything. Since "C" is likely to be more portable, it's probably the right choice. Here's the patch. manifest hash: 1bf3291eafbde0cdeb1222bb72295c0e2974f236 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwOyVywK+sNU5EO8RAk18AJ4pYmvvJMZfFIR39NqvquXhhWPUTQCcDhhg Ce12AHU8o+m/aFToyRaaQL8= =5nRs -----END PGP SIGNATURE----- diff -r 2ad41189bee5 -r 77c66c4eec0e tests/run-tests --- a/tests/run-tests Mon Jun 27 22:18:12 2005 -0800 +++ b/tests/run-tests Mon Jun 27 22:22:13 2005 -0800 @@ -2,6 +2,21 @@ set -e +export LANG=C +export LC_CTYPE="C" +export LC_NUMERIC="C" +export LC_TIME="C" +export LC_COLLATE="C" +export LC_MONETARY="C" +export LC_MESSAGES="C" +export LC_PAPER="C" +export LC_NAME="C" +export LC_ADDRESS="C" +export LC_TELEPHONE="C" +export LC_MEASUREMENT="C" +export LC_IDENTIFICATION="C" +export LC_ALL="" + tests=0 failed=0 H=$PWD diff -r 2ad41189bee5 -r 77c66c4eec0e tests/test-tags.out --- a/tests/test-tags.out Mon Jun 27 22:18:12 2005 -0800 +++ b/tests/test-tags.out Mon Jun 27 22:22:13 2005 -0800 @@ -43,5 +43,5 @@ + hg id c8edf04160c7+b9154636be93+ tip + hg status +C a C .hgtags -C a