]> Savannah Git Hosting - gnulib.git/commitdiff
Apply the last change to all locale-*.m4 files.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Jul 2023 21:11:25 +0000 (23:11 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Jul 2023 21:11:25 +0000 (23:11 +0200)
* m4/locale-ar.m4 (gt_LOCALE_AR): Reject locale name that might cause
trouble with sh or make.
* m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.

ChangeLog
m4/locale-ar.m4
m4/locale-tr.m4

index 4da47ab8b93f71ffcb8d58442e3fb6461065558a..a78bd6528daf6adb8a0047607e5e098ae541a153 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-07-10  Bruno Haible  <bruno@clisp.org>
+
+       Apply the last change to all locale-*.m4 files.
+       * m4/locale-ar.m4 (gt_LOCALE_AR): Reject locale name that might cause
+       trouble with sh or make.
+       * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
+
 2023-07-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        c32width: protect against bad configure args
index 3c3342db08460a31e6850054df5eb7f7518f765b..2a7f4918d59b68960ca31c5ad23858762894a0d7 100644 (file)
@@ -100,5 +100,11 @@ int main () {
     rm -fr conftest*
   ])
   LOCALE_AR=$gt_cv_locale_ar
+  case $LOCALE_AR in #(
+    '' | *[[[:space:]\"\$\'*@<:@]]*)
+      dnl This locale name might cause trouble with sh or make.
+      AC_MSG_WARN([invalid locale "$LOCALE_AR"; assuming "none"])
+      LOCALE_AR=none;;
+  esac
   AC_SUBST([LOCALE_AR])
 ])
index d34df057d11f32e21021a46e5737c29dcbd807d1..eb51484ec6e8e2ec6c09683becebd0f6521627a1 100644 (file)
@@ -122,5 +122,11 @@ int main () {
     rm -fr conftest*
   ])
   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
+  case $LOCALE_TR_UTF8 in #(
+    '' | *[[[:space:]\"\$\'*@<:@]]*)
+      dnl This locale name might cause trouble with sh or make.
+      AC_MSG_WARN([invalid locale "$LOCALE_TR_UTF8"; assuming "none"])
+      LOCALE_TR_UTF8=none;;
+  esac
   AC_SUBST([LOCALE_TR_UTF8])
 ])