mbrtoc32: Don't enable the OpenBSD workaround on Solaris 11 OpenIndiana.

* m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Ignore
$gl_cv_func_mbrtoc32_C_locale_like_iso_8859 on Solaris.
This commit is contained in:
Bruno Haible
2026-09-01 00:02:12 +02:00
parent 10f61d9f95
commit a8d15411d4
2 changed files with 19 additions and 4 deletions
+6
View File
@@ -1,3 +1,9 @@
2026-08-31 Bruno Haible <bruno@clisp.org>
mbrtoc32: Don't enable the OpenBSD workaround on Solaris 11 OpenIndiana.
* m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Ignore
$gl_cv_func_mbrtoc32_C_locale_like_iso_8859 on Solaris.
2026-08-31 Paul Eggert <eggert@cs.ucla.edu>
thread-optim: port to CheriBSD purecap
+13 -4
View File
@@ -1,5 +1,5 @@
# mbrtoc32.m4
# serial 26
# serial 27
dnl Copyright (C) 2014-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -49,9 +49,18 @@ AC_DEFUN([gl_FUNC_MBRTOC32],
*yes)
case "$gl_cv_func_mbrtoc32_C_locale_like_iso_8859" in
*yes)
AC_DEFINE([MBRTOC32_IN_C_LOCALE_MAYBE_LIKE_ISO_8859], [1],
[Define if the mbrtoc32 function in the C locale may work like in an ISO-8859-1 locale.])
REPLACE_MBRTOC32=1
case "$host_os" in
solaris*)
dnl Solaris 11 OpenIndiana has a well-working mbrtoc32. No
dnl need to apply the MBRTOC32_IN_C_LOCALE_MAYBE_LIKE_ISO_8859
dnl workaround.
;;
*)
AC_DEFINE([MBRTOC32_IN_C_LOCALE_MAYBE_LIKE_ISO_8859], [1],
[Define if the mbrtoc32 function in the C locale may work like in an ISO-8859-1 locale.])
REPLACE_MBRTOC32=1
;;
esac
;;
esac
;;