From: Jan Engelhardt Date: Sat, 4 Dec 2010 01:53:20 +0000 (+0100) Subject: build: fix globbing of extensions in other locales X-Git-Tag: v1.4.11~112^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4105ad56335058af4b0b1be1278e01f5c0bd4ac;p=thirdparty%2Fiptables.git build: fix globbing of extensions in other locales In the fi_FI locale, [a-z] would not include 'w', for example. Rectify this by using [[:alnum:]] (to counter against different ordering) and forcing the POSIX locale (so that the alphabet has at least the 26 base characters). Signed-off-by: Jan Engelhardt --- diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in index 709366a1..7c479018 100644 --- a/extensions/GNUmakefile.in +++ b/extensions/GNUmakefile.in @@ -155,8 +155,8 @@ initext6.c: .initext6.dd # # Manual pages # -ex_matches = $(sort $(shell echo $(1) | grep -Eo '\b[a-z0-9]+\b')) -ex_targets = $(sort $(shell echo $(1) | grep -Eo '\b[A-Z0-9]+\b')) +ex_matches = $(sort $(shell echo $(1) | LC_ALL=POSIX grep -Eo '\b[[:alnum:]]+\b')) +ex_targets = $(sort $(shell echo $(1) | LC_ALL=POSIX grep -Eo '\b[[:alnum:]]+\b')) man_run = \ ${AM_VERBOSE_GEN} \ for ext in $(1); do \