summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-04-29 12:01:09 +0100
committerThomas Adam <thomas@xteddy.org>2016-04-29 12:01:09 +0100
commita9d501e975ca2ecbcb79262678d2f17694b58856 (patch)
tree548bd126d84e9dee3318070e869005b6b56430c2 /utf8.c
parent7a02910feb9cea4006a0b9a925c3f6cc7984db3b (diff)
parent7abdfbe20ed01315d84d5b0f02712bd88d407445 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/utf8.c b/utf8.c
index 87dce597..54cea671 100644
--- a/utf8.c
+++ b/utf8.c
@@ -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);