]> Savannah Git Hosting - gnulib.git/commitdiff
doc: Mention macOS wcwidth bug.
authorBruno Haible <bruno@clisp.org>
Thu, 4 May 2023 11:29:49 +0000 (13:29 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 4 May 2023 11:29:49 +0000 (13:29 +0200)
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Mention macOS bugs.
* doc/posix-functions/wcwidth.texi: Update regarding macOS.

ChangeLog
doc/posix-functions/wcwidth.texi
m4/wcwidth.m4

index ac0153693e0758e679afb17093555484b60346be..5e5943e4f5ef345e0dbd844daaafdd2997b71c6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-05-04  Bruno Haible  <bruno@clisp.org>
+
+       doc: Mention macOS wcwidth bug.
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Mention macOS bugs.
+       * doc/posix-functions/wcwidth.texi: Update regarding macOS.
+
 2023-05-03  Bruno Haible  <bruno@clisp.org>
 
        vasnprintf, vasnwprintf: Make '0' flag handling more ISO C compliant.
index 0540bb67a1693da045795dc69f2671a3e6a52351..b68cb78015b6de801402fa92a32d206fc0cc1200 100644 (file)
@@ -17,7 +17,7 @@ glibc 2.8.
 @item
 This function handles combining characters in UTF-8 locales incorrectly on some
 platforms:
-NetBSD 9.0, OpenBSD 5.8, MidnightBSD 1.1.
+macOS 12.5, NetBSD 9.0, OpenBSD 5.8, MidnightBSD 1.1.
 @item
 This function returns 2 for characters with ambiguous east asian width, even in
 Western locales, on some platforms:
index 93a7fa329c6122e7d631120bcb959c4755870e01..e7829e98c87e651e770091bf854a819ff66e308a 100644 (file)
@@ -1,4 +1,4 @@
-# wcwidth.m4 serial 35
+# wcwidth.m4 serial 36
 dnl Copyright (C) 2006-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -41,9 +41,9 @@ AC_DEFUN([gl_FUNC_WCWIDTH],
   if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; then
     HAVE_WCWIDTH=1
     dnl On Mac OS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1.
-    dnl On NetBSD 9.0, OpenBSD 5.0, MidnightBSD 1.1,
+    dnl On macOS 12.5, NetBSD 9.0, OpenBSD 5.0, MidnightBSD 1.1,
     dnl wcwidth(0x05B0) (HEBREW POINT SHEVA) returns 1.
-    dnl On NetBSD 9.0, MidnightBSD 1.1, OSF/1 5.1,
+    dnl On macOS 12.5, NetBSD 9.0, MidnightBSD 1.1, OSF/1 5.1,
     dnl wcwidth(0x200B) (ZERO WIDTH SPACE) returns 1.
     dnl On OpenBSD 5.8, wcwidth(0xFF1A) (FULLWIDTH COLON) returns 0.
     dnl This leads to bugs in 'ls' (coreutils).