istringstream 'read' terminating on a null character

Phil Edwards pedwards@disaster.jaj.com
Wed Jul 4 21:00:00 GMT 2001


On Thu, Jul 05, 2001 at 02:37:46PM +1200, Mathew Pitchforth wrote:
> When I use GCC V3.0 I am finding that binary 'read' operations on an
> istringstream are terminating on a null character.  The write operations are
> unaffected by the null characters and setting the streams to binary does not
> resolved the problem.

The stringstream classes ignore the binary flag (which does not do what
you seem to think it does).  I'll try and take a closer look at your code
tomorrow and test it with current sources.

Phil

-- 
Would I had phrases that are not known, utterances that are strange, in
new language that has not been used, free from repetition, not an utterance
which has grown stale, which men of old have spoken.
                                     - anonymous Egyptian scribe, c.1700 BC



More information about the Gcc-bugs mailing list