diff options
author | Jim Meyering <jim@meyering.net> | 2000-08-05 20:27:49 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-08-05 20:27:49 +0000 |
commit | 773a575cd59826669a84dc56663a0c7882d47628 (patch) | |
tree | 534273d5ad5191992a1a206001550cca7890fd19 /src | |
parent | 8db7ef9e425310baec9bdcb49c52088772c77b97 (diff) | |
download | coreutils-773a575cd59826669a84dc56663a0c7882d47628.tar.xz |
(main): Rename local `t' to `tmp_dir' to avoid shadowing
a previous local by that name.
(usage): Warn that GNU sort is now locale-aware, and suggest
people put LC_ALL=POSIX in their environment.
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c index c6ffbc4d3..d31f04809 100644 --- a/src/sort.c +++ b/src/sort.c @@ -310,6 +310,12 @@ in the field, both counted from one with -k, from zero with the obsolescent\n\ form. OPTS is made up of one or more of Mbdfinr; this effectively disables\n\ global -Mbdfinr settings for that key. If no key is given, use the entire\n\ line as the key. With no FILE, or when FILE is -, read standard input.\n\ +\n\ +*** WARNING ***\n\ +This version of sort honors the locale settings in your environment.\n\ +For example, if you set one of the LANG or LC_ALL environment variables\n\ +to `en_US', then sort will work very differently than most people expect.\n\ +If that's not what you want, then set LC_ALL to POSIX in your environment.\n\ ") ); puts (_("\nReport bugs to <bug-textutils@gnu.org>.")); @@ -2226,8 +2232,8 @@ but lacks following character offset")); if (temp_dir_count == 0) { - char const *t = getenv ("TMPDIR"); - add_temp_dir (t ? t : DEFAULT_TMPDIR); + char const *tmp_dir = getenv ("TMPDIR"); + add_temp_dir (tmp_dir ? tmp_dir : DEFAULT_TMPDIR); } if (nfiles == 0) |