diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-04-29 12:01:09 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-04-29 12:01:09 +0100 |
commit | a9d501e975ca2ecbcb79262678d2f17694b58856 (patch) | |
tree | 548bd126d84e9dee3318070e869005b6b56430c2 /utf8.c | |
parent | 7a02910feb9cea4006a0b9a925c3f6cc7984db3b (diff) | |
parent | 7abdfbe20ed01315d84d5b0f02712bd88d407445 (diff) | |
download | rtmux-a9d501e975ca2ecbcb79262678d2f17694b58856.tar.gz rtmux-a9d501e975ca2ecbcb79262678d2f17694b58856.tar.bz2 rtmux-a9d501e975ca2ecbcb79262678d2f17694b58856.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -118,14 +118,6 @@ utf8_width(wchar_t wc) width = wcwidth(wc); if (width < 0 || width > 0xff) { log_debug("Unicode %04x, wcwidth() %d", wc, width); - - /* - * Many platforms have no width for relatively common - * characters (wcwidth() returns -1); assume width 1 in this - * case and hope for the best. - */ - if (width < 0) - return (1); return (-1); } return (width); |