]> Savannah Git Hosting - gnulib.git/commit
wcwidth: Ensure width 1, not 2, for ambiguous characters.
authorBruno Haible <bruno@clisp.org>
Sun, 5 May 2019 11:18:23 +0000 (13:18 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 May 2019 11:19:12 +0000 (13:19 +0200)
commit620857c4dccb8f0548cdb855f6b2f46ebea3919e
tree839d8fcdf3de4342a953d37deb118f7221c24e42
parent3f14b27dec6f4a590d8ae0ffcbb7cf7714815a05
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.
ChangeLog
doc/posix-functions/wcwidth.texi
m4/wcwidth.m4
tests/test-wcwidth.c