]> Savannah Git Hosting - gnulib.git/commitdiff
maintainer-makefile: Invoke syntax-checks regardless of locale.
authorSimon Josefsson <simon@josefsson.org>
Mon, 4 Jan 2021 22:12:46 +0000 (23:12 +0100)
committerSimon Josefsson <simon@josefsson.org>
Mon, 4 Jan 2021 22:12:46 +0000 (23:12 +0100)
* top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
environment because [a-z] may not include 'w' in all locales.

ChangeLog
top/maint.mk

index c86fb7888209718fb9d7e057328de1027b785525..9ebc32bea1a2e6f2f907d0bc00a6a0b29f95db68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-04  Simon Josefsson  <simon@josefsson.org>
+
+       maintainer-makefile: Invoke syntax-checks regardless of locale.
+       * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
+       environment because [a-z] may not include 'w' in all locales.
+
 2021-01-04  Bruno Haible  <bruno@clisp.org>
 
        nstrftime, time_rz: Avoid using an obsolete Autoconf macro.
index ee8c5ebd1efd73e9fc6325263196465011737933..87f65c7e0ed33844f916321bea5fe0d2831320cb 100644 (file)
@@ -163,7 +163,7 @@ ifneq ($(_gl-Makefile),)
 _cfg_mk := $(wildcard $(srcdir)/cfg.mk)
 
 # Collect the names of rules starting with 'sc_'.
-syntax-check-rules := $(sort $(shell $(SED) -n \
+syntax-check-rules := $(sort $(shell env LANG=C $(SED) -n \
    's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(srcdir)/$(ME) $(_cfg_mk)))
 .PHONY: $(syntax-check-rules)