Daniel Lehman : msvcp90: In codecvt<wchar_t>::do_out, copy local buffer to *to_next.