-
Bug
-
Resolution: Unresolved
-
Medium
-
Code Generation Tools
-
CODEGEN-4032
-
wofstream << operator unexpected termination. Test case sets up a wofstream object associated with an output file. When writing a wchar_t character out to the file via a '<<' operator, app terminates unexpectedly.
Relevant code:
std::wofstream out00;
out00.imbue(Clocale);
out00.setf(std::ios_base::unitbuf);
out00.exceptions(exception_states);
wchar_t u00 = 0x50;
try
{ out00.open(fn00, std::ios_base::out|std::ios_base::binary|std::ios_base::ate); for (int i=0; i<6; i++) out00 << u00++; out00.close(); }catch (...)
{ uninitiated("Output threw an exception."); }