summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-05 20:27:49 +0000
committerJim Meyering <jim@meyering.net>2000-08-05 20:27:49 +0000
commit773a575cd59826669a84dc56663a0c7882d47628 (patch)
tree534273d5ad5191992a1a206001550cca7890fd19 /src/sort.c
parent8db7ef9e425310baec9bdcb49c52088772c77b97 (diff)
downloadcoreutils-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/sort.c')
-rw-r--r--src/sort.c10
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)