Makefile: set LC_CTYPE, LC_COLLATE, LC_NUMERIC to C
authorH. Peter Anvin <hpa@zytor.com>
Thu, 17 Dec 2009 14:56:11 +0000 (06:56 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 17 Dec 2009 15:03:21 +0000 (07:03 -0800)
commitc051346b7db27aaf674b8f3b4955240580b2a58a
treeed5e3c018cb1ab22a5930c7dee71e815061b0020
parent6a1e008a0915f502eb026fb995ea3e49d5b017f7
Makefile: set LC_CTYPE, LC_COLLATE, LC_NUMERIC to C

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 <hpa@zytor.com>
Acked-by: Michal Marek <mmarek@sues.cz>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Acked-by: Roland Dreier <rdreier@cisco.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
LKML-Reference: <4B2A1761.4070904@suse.cz>
Makefile