mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
07105202bd
Setting LC_CTYPE=C breaks localized messages in some setups. With only LC_COLLATE=C and LC_NUMERIC=C, we get almost all we need, except for not so defined character classes and tolower()/toupper(). The former is not a big issue, because we can assume that e.g. [:alpha:] will always include a-zA-Z and we only ever process ASCII input. The latter seems only affect arch/sh/tools/gen-mach-types, which we can handle separately. So after this patch the meaning of ranges like [a-z], the behavior of sort and join, etc. should be the same everywhere and at the same time gcc should be able to print localized waring and error messages. LC_NUMERIC=C might not be necessary, but setting it doesn't hurt. Reported-by: Simon Horman <horms@verge.net.au> Reported-by: Sergei Trofimovich <slyfox@inbox.ru> Acked-by: H. Peter Anvin <hpa@zytor.com> Tested-by: Simon Horman <horms@verge.net.au> Tested-by: Masami Hiramatsu <mhiramat@redhat.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
17 lines
451 B
Makefile
17 lines
451 B
Makefile
#
|
|
# arch/sh/tools/Makefile
|
|
#
|
|
# Copyright (C) 2003 Paul Mundt
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
# License. See the file "COPYING" in the main directory of this archive
|
|
# for more details.
|
|
#
|
|
# Shamelessly cloned from ARM.
|
|
#
|
|
|
|
include/generated/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
|
|
@echo ' Generating $@'
|
|
$(Q)mkdir -p $(dir $@)
|
|
$(Q)LC_ALL=C $(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }
|