diff options
author | Bruno Haible <bruno@clisp.org> | 2019-05-05 13:18:23 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-05-05 13:19:12 +0200 |
commit | 620857c4dccb8f0548cdb855f6b2f46ebea3919e (patch) | |
tree | 839d8fcdf3de4342a953d37deb118f7221c24e42 /doc/posix-functions/wcwidth.texi | |
parent | 3f14b27dec6f4a590d8ae0ffcbb7cf7714815a05 (diff) | |
download | gnulib-620857c4dccb8f0548cdb855f6b2f46ebea3919e.tar.gz |
wcwidth: Ensure width 1, not 2, for ambiguous characters.
Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
via Akim Demaille <akim.demaille@gmail.com>.
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
en_US.UTF-8 locale, since that is more likely to be present than an
fr_FR.UTF-8 locale.
* tests/test-wcwidth.c (main): Check the width of U+2202.
* doc/posix-functions/wcwidth.texi: Mention the issue.
Diffstat (limited to 'doc/posix-functions/wcwidth.texi')
-rw-r--r-- | doc/posix-functions/wcwidth.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/posix-functions/wcwidth.texi b/doc/posix-functions/wcwidth.texi index 741be8ea32..ecdf758a31 100644 --- a/doc/posix-functions/wcwidth.texi +++ b/doc/posix-functions/wcwidth.texi @@ -18,6 +18,10 @@ glibc 2.8. This function handles combining characters in UTF-8 locales incorrectly on some platforms: Mac OS X 10.3, OpenBSD 5.8. +@item +This function returns 2 for characters with ambiguous east asian width, even in +Western locales, on some platforms: +Solaris 11.4. @end itemize Portability problems not fixed by Gnulib: |