Magellan Linux

Contents of /trunk/newt/patches/newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 266 byte(s)
-import

1 --- newt-0.51.4/newt.c.pix 2003-08-30 03:09:25.000000000 +0200
2 +++ newt-0.51.4/newt.c 2003-08-30 03:09:44.000000000 +0200
3 @@ -164,7 +164,7 @@
4 y = wcwidth(tmp);
5 if (y>0)
6 nchars+=y;
7 - } else break;
8 + } else return nchars + len;
9 }
10 return nchars;
11 }