------- Comment #27 from pcarlini at suse dot de 2006-06-18 10:03 ------- (In reply to comment #26) > Thiemo Seufer diagnosed this as a problem with the testcases: mbstate_t needs > explictly initialising to all-bits-zero with memset. After doing this > > std::memset(&state, 0, sizeof(mbstate_t)); > > all the testcases work for me on powerpc and i386.
Funny. Actually, we still have bugs, in the testsuite only , where we are never doing the initialization. I will fix that. Sorry about my part of the waste of time, I'm learning some of those details with you, the current codecvt has been contributed by other people. > > Since this is not a bug, it can be closed. Sorry about that. Perhaps the > libstdc++ doxygen documentation for codecvt could document that > state_type/mbstate_t needs explicit initialisation before use. > > > Regards, > Roger > -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de |dot org | Status|WAITING |ASSIGNED Last reconfirmed|2006-06-16 17:03:44 |2006-06-18 10:03:32 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28059