]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: fix globbing of extensions in other locales
authorJan Engelhardt <jengelh@medozas.de>
Sat, 4 Dec 2010 01:53:20 +0000 (02:53 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 4 Dec 2010 01:57:29 +0000 (02:57 +0100)
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 <jengelh@medozas.de>
extensions/GNUmakefile.in

index 709366a12eecbed7146151b0b470bf692d595eb8..7c4790187e4c5eebc0e0739c8b88ff0ce836802b 100644 (file)
@@ -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 \