/[gentoo-x86]/sys-fs/e2fsprogs/files/e2fsprogs-1.38-tests-locale.patch
Gentoo

Contents of /sys-fs/e2fsprogs/files/e2fsprogs-1.38-tests-locale.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Feb 8 01:17:03 2006 UTC (11 years ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Fix running tests in different locales #99766 by Attila Stehr.
(Portage version: 2.1_pre4-r1)

1 Since the tests analyze the output messages, force the default locale.
2
3 http://bugs.gentoo.org/99766
4
5 --- tests/test_script.in
6 +++ tests/test_script.in
7 @@ -3,6 +3,19 @@
8 # Test script for e2fsck
9 #
10
11 +# NLS nuisances.
12 +for as_var in \
13 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15 + LC_TELEPHONE LC_TIME
16 +do
17 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18 + eval $as_var=C; export $as_var
19 + else
20 + unset $as_var
21 + fi
22 +done
23 +
24 if test "$1"x = x ; then
25 TESTS=`ls -d $SRCDIR/[a-zA-Z]_* | $EGREP -v "\.failed|\.new"`
26 else

  ViewVC Help
Powered by ViewVC 1.1.20