Commit 06b5dc646b9479b786d77749936f25910cd82a37

Authored by H. Peter Anvin
1 parent 8c63450718

Makefile: Unexport LC_ALL instead of clearing it

Apparently not all versions of glibc and utilities treat an empty
LC_ALL as nonexistent, causing error messages to be garbled.  Instead,
explicitly unexport it from the environment.

Reported-and-tested-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
LKML-Reference: <4B2AC394.4030108@redhat.com>
Cc: Michal Marek <mmarek@sues.cz>
Cc: Roland Dreier <rdreier@cisco.com>
Cc: Sam Ravnborg <sam@ravnborg.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -17,11 +17,11 @@
17 17 MAKEFLAGS += -rR --no-print-directory
18 18  
19 19 # Avoid funny character set dependencies
20   -LC_ALL=
  20 +unexport LC_ALL
21 21 LC_CTYPE=C
22 22 LC_COLLATE=C
23 23 LC_NUMERIC=C
24   -export LC_ALL LC_CTYPE LC_COLLATE LC_NUMERIC
  24 +export LC_CTYPE LC_COLLATE LC_NUMERIC
25 25  
26 26 # We are using a recursive build, so we need to do a little thinking
27 27 # to get the ordering right.