I have attached two additional testcases to the upstream bug report. The testcases are now:
Testcase to show codecvt crash http://gcc.gnu.org/bugzilla/attachment.cgi?id=11679 (wide.cc) Use mbsnrtowcs directly. http://gcc.gnu.org/bugzilla/attachment.cgi?id=11682 (wide2.cc) C example using mbsnrtowcs http://gcc.gnu.org/bugzilla/attachment.cgi?id=11683 (wide3.c) There isn't a clear pattern here. It's possible that the testcases are buggy, but's it's odd how they work on one arch and not the other, or vice versa. Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gutenprint.sourceforge.net/ Debian GNU/Linux http://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
pgprvlhYHTkKZ.pgp
Description: PGP signature