Skip to content

Commit

Permalink
Makefile: set LC_CTYPE, LC_COLLATE, LC_NUMERIC to C
Browse files Browse the repository at this point in the history
There are a number of common Unix constructs like character ranges in
grep/sed/awk which don't work as expected with LC_COLLATE set to other
than C.  Similarly, set LC_CTYPE and LC_NUMERIC to C to avoid other
nasty surprises.

In order to make sure these actually take effect we also have to
clear LC_ALL.

Signed-off-by: H. Peter Anvin <[email protected]>
Acked-by: Michal Marek <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Acked-by: Roland Dreier <[email protected]>
Cc: Sam Ravnborg <[email protected]>
LKML-Reference: <[email protected]>
  • Loading branch information
H. Peter Anvin committed Dec 17, 2009
1 parent 6a1e008 commit c051346
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ NAME = Man-Eating Seals of Antiquity
# o print "Entering directory ...";
MAKEFLAGS += -rR --no-print-directory

# Avoid funny character set dependencies
LC_ALL=
LC_CTYPE=C
LC_COLLATE=C
LC_NUMERIC=C
export LC_ALL LC_CTYPE LC_COLLATE LC_NUMERIC

# We are using a recursive build, so we need to do a little thinking
# to get the ordering right.
#
Expand Down

0 comments on commit c051346

Please sign in to comment.