]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: assume non-rare encodings
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Aug 2023 00:41:42 +0000 (17:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Aug 2023 03:32:13 +0000 (20:32 -0700)
* 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

index f2500a0a4c44963eaf5ed006f770296e618c07f9..a3e5b22016e31beb7e4a6133311fffbceef4cb09 100644 (file)
@@ -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])