[Bug libstdc++/11305] basic_filebuf::_M_convert_to_external fails to convert single characters.

peturr02 at ru dot is gcc-bugzilla@gcc.gnu.org
Tue Jun 24 09:06:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11305



------- Additional Comments From peturr02 at ru dot is  2003-06-24 08:36 -------
Created an attachment (id=4273)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4273&action=view)
Test case

The functions test1, test2 and test3 all cause _M_convert_to_external to be
called with a single character buffer, and these fail. In test4, the same
characters are written successfully, as _M_convert_to_external is passed more
than one character.



More information about the Gcc-bugs mailing list