From: msw Date: Wed, 18 Dec 2002 04:13:31 +0000 (+0000) Subject: fix lots of newt utf-8 display errors X-Git-Tag: r0-51-2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62654d06af10ee65abe84c2e7ecd68d134dbb3fe;p=thirdparty%2Fnewt.git fix lots of newt utf-8 display errors --- diff --git a/newt.c b/newt.c index 9a1e73e..879e5fb 100644 --- a/newt.c +++ b/newt.c @@ -160,6 +160,7 @@ int wstrlen(const char *str, int len) { x = mbrtowc(&tmp,str,len,&ps); if (x >0) { + str += x; len -= x; y = wcwidth(tmp); if (y>0)