[libstdc++] Transforming a string to a primary sort key

Andreas Schwab schwab@linux-m68k.org
Fri Mar 28 20:31:00 GMT 2014


Tim Shen <timshen91@gmail.com> writes:

>     int n1 = wcsxfrm(buff1, st1, wcslen(st1));

This is not the length of the string, but the max size of the output.
Since the output is truncated you are getting unspecified contents.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-alpha mailing list