libstdc++/3860: Writing wide string to wide stream segfaults
Thu Feb 7 17:53:00 GMT 2002

Synopsis: Writing wide string to wide stream segfaults

State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Feb  7 17:49:24 2002
    Please try this now, after:
    002-02-07  Benjamin Kosnik  <>
    	* include/std/std_fstream.h (filebuf::__file_type): Change to
    	(filebuf::_M_convert_to_external): Declare.
    	* include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
    	codecvt bits for wide streams.
    	(filebuf::_M_really_overflow): Use it.
    	(filebuf::underflow): Use codecvt.
    	* config/locale/codecvt_specializations_ieee_1003.1-200x.h: 
    	(codecvt<__enc_traits>::do_out): Deal with partial.
    	(codecvt<__enc_traits>::do_encoding): Return something useful.
    	* src/ (codecvt<wchar_t>::do_encoding): Return sizeof
    	* testsuite/22_locale/ (test01):
    	Change expected encoding output.
    	(test02): Same.
    	* testsuite/22_locale/ (test01): Same.
    	(test02): Same.

More information about the Gcc-bugs mailing list