[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-6.0: numerous test failures on MacOS X
From: |
Paul Eggert |
Subject: |
Re: coreutils-6.0: numerous test failures on MacOS X |
Date: |
Wed, 16 Aug 2006 13:14:58 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> 2006-08-16 Bruno Haible <address@hidden>
>
> * tests/lang-default: Set LC_ALL to "C", not empty.
I think this is the right sort of fix, though I'm puzzled as to why
the code set LC_ALL to the empty string in the first place.
This dates back to this entry in old/fileutils/ChangeLog:
2000-10-22 Jim Meyering <address@hidden>
* tests/lang-default: New file. Set LANG, LC_ALL, and LANGUAGE to ''
(rather than to `C') and export them into the environment.
Suggestion from Bruno Haible.
Do you recall why they were set to '' back then?
Anyway, in the meantime I thought I'd install this:
2006-08-16 Paul Eggert <address@hidden>
* tests/lang-default (LC_ALL): Set to "C", so we get
English-language diagnostics. Unset the other variables; it
should be portable to use 'unset' for this stuff nowadays.
Problem reported by Bruno Haible. Using "C" reverses the
2000-10-22 change to fileutils in this area.
--- tests/lang-default 31 Oct 2000 19:33:30 -0000 1.3
+++ tests/lang-default 16 Aug 2006 20:11:42 -0000 1.4
@@ -2,7 +2,9 @@
# Set locale-related environment variables so we get consistent
# message translations, time formats, sort orderings, etc.
-for i in \
- LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC LC_TIME; do
- eval "$i=; export $i"
-done
+LC_ALL=C
+export LC_ALL
+unset LANGUAGE NLSPATH
+
+# These settings shouldn't matter, but unset them anyway just in case.
+unset LANG LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME