summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)