From d4105ad56335058af4b0b1be1278e01f5c0bd4ac Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 4 Dec 2010 02:53:20 +0100 Subject: 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 --- extensions/GNUmakefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/GNUmakefile.in') 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 \ -- cgit v1.2.3