From: Paul Eggert Date: Thu, 31 Aug 2023 00:41:42 +0000 (-0700) Subject: maint: assume non-rare encodings X-Git-Tag: v9.5~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07f8ec6bff48f933e8478b63e9279aed82dcd0d3;p=thirdparty%2Fcoreutils.git 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. --- 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])