Mercurial > hg > aboriginal
view sources/patches/uClibc-fixintlassert.patch @ 1293:049dc1f59113
Fix for gettext's mbuiter.h assert 'iter->cur.wc == 0' failed which I hit in two diffferen tpackage builds and which gentoo hit a year ago here: http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=288743
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 21 Nov 2010 14:23:30 -0600 |
parents | |
children |
line wrap: on
line source
diff -ruN uClibc/libc/misc/wchar/wchar.c uClibc.bak2/libc/misc/wchar/wchar.c --- uClibc/libc/misc/wchar/wchar.c 2010-04-02 10:34:27.000000000 -0500 +++ uClibc.bak2/libc/misc/wchar/wchar.c 2010-11-20 21:57:16.000000000 -0600 @@ -286,6 +286,7 @@ s = empty_string; n = 1; } else if (*s == '\0') { + if (pwc) *pwc = 0; /* According to the ISO C 89 standard this is the expected behaviour. */ return 0; } else if (!n) {