From 07f8ec6bff48f933e8478b63e9279aed82dcd0d3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 30 Aug 2023 17:41:42 -0700 Subject: [PATCH] maint: assume non-rare encodings * configure.ac (GNULIB_WCHAR_SINGLE_LOCALE): Define. This can improve performance, while dropping support for rare encodings on non-GNU platforms. Nowadays these encodings are typically not worth the hassle. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index f2500a0a4c..a3e5b22016 100644 --- a/configure.ac +++ b/configure.ac @@ -80,6 +80,10 @@ AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1], [Define to 1 if apps don't set the locale after calling locale-sensitive functions like mbrtowc and wcwidth.]) +AC_DEFINE([GNULIB_MBRTOC32_REGULAR], [1], + [Do not worry about rare encodings like CP864, EBCDIC, Johab, and Shift JIS + that glibc does not support.]) + # The test suite needs to know if we have a working perl. AM_CONDITIONAL([HAVE_PERL], [test "$gl_cv_prog_perl" != no]) -- 2.47.2