]> Savannah Git Hosting - gnulib.git/commitdiff
wcwidth: Replace also on OpenBSD 5.8
authorBruno Haible <bruno@clisp.org>
Thu, 21 Jan 2016 10:32:20 +0000 (11:32 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Jan 2016 15:56:59 +0000 (07:56 -0800)
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
* doc/posix-functions/wcwidth.texi: Update.

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

index 1bdf766eac78d38ab965c303ccfb4df752e807e0..f0083012543f75a355b6dc3d26913dadfd90e396 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-21  Bruno Haible  <bruno@clisp.org>
+
+       wcwidth: Replace also on OpenBSD 5.8
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
+       * doc/posix-functions/wcwidth.texi: Update.
+
 2016-01-20  Pádraig Brady  <P@draigBrady.com>
 
        gnu-web-doc-update: fix addition of new files
index d00354b0e34bb5cf8fe6735818d99be6461c1d47..d15bbb04166f6f2be686b19bcc840451c314eb40 100644 (file)
@@ -17,7 +17,7 @@ glibc 2.8.
 @item
 This function handles combining characters in UTF-8 locales incorrectly on some
 platforms:
-Mac OS X 10.3, OpenBSD 5.0.
+Mac OS X 10.3, OpenBSD 5.8.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 653f4427b6f1c214867cc783d8fb7c006a72d6bc..7a743c0aa72dfd285bd5e899fa756d5731e65a7c 100644 (file)
@@ -39,6 +39,7 @@ AC_DEFUN([gl_FUNC_WCWIDTH],
     dnl On Mac OS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1.
     dnl On OpenBSD 5.0, wcwidth(0x05B0) (HEBREW POINT SHEVA) returns 1.
     dnl On OSF/1 5.1, 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).
     AC_CACHE_CHECK([whether wcwidth works reasonably in UTF-8 locales],
       [gl_cv_func_wcwidth_works],
@@ -74,6 +75,8 @@ int main ()
         result |= 2;
       if (wcwidth (0x200B) > 0)
         result |= 4;
+      if (wcwidth (0xFF1A) == 0)
+        result |= 8;
     }
   return result;
 }]])],