From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 30 Aug 2023 17:15:09 +0000 (-0700)
Subject: wchar-single: fix module broken since 2021
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=be4338ca764db3051934a0c8adbf2ef17c85c705;p=gnulib.git

wchar-single: fix module broken since 2021

Adjust to 2021-03-07 change “Rename GNULIB_WCHAR_SINGLE to
GNULIB_WCHAR_SINGLE_LOCALE”.  Apparently nobody noticed that
the module was broken.  Perhaps we should obsolete the module?
* modules/wchar-single (GNULIB_WCHAR_SINGLE_LOCALE): Define.
---

diff --git a/ChangeLog b/ChangeLog
index 2d5f7b958c..c9c0f408f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-08-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+	wchar-single: fix module broken since 2021
+	Adjust to 2021-03-07 change “Rename GNULIB_WCHAR_SINGLE to
+	GNULIB_WCHAR_SINGLE_LOCALE”.  Apparently nobody noticed that
+	the module was broken.  Perhaps we should obsolete the module?
+	* modules/wchar-single (GNULIB_WCHAR_SINGLE_LOCALE): Define.
+
 2023-08-26  Bruno Haible  <bruno@clisp.org>
 
 	c32width tests: Avoid failure on FreeBSD 12.
diff --git a/modules/wchar-single b/modules/wchar-single
index e047de008b..08f6a85021 100644
--- a/modules/wchar-single
+++ b/modules/wchar-single
@@ -8,6 +8,10 @@ Depends-on:
 wchar
 
 configure.ac:
+AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1],
+  [Define to 1 to enable more efficient wchar replacements,
+   where we know the locale charset will not change between calls.])
+dnl For backward compatibility:
 gl_MODULE_INDICATOR([wchar-single])
 
 Makefile.am: