Index: src/sort.c =================================================================== --- src/sort.c.orig 2010-05-04 17:28:43.820359291 +0200 +++ src/sort.c 2010-05-04 17:30:44.507859357 +0200 @@ -1285,7 +1285,7 @@ inittables_mb (void) else { j += mblength; - mblength = wcrtomb (mbc, wc, &state_wc); + mblength = wcrtomb (mbc, pwc, &state_wc); assert (mblength != (size_t) 0 && mblength != (size_t) -1); }