Merge branch 'obsd-master'

pull/390/head
Thomas Adam 2016-04-29 12:01:09 +01:00
commit a9d501e975
1 changed files with 0 additions and 8 deletions

8
utf8.c
View File

@ -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);