This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++-v3: bug in handling text files for DJGPP


> From: pavenis@lanet.lv
> Date: Mon, 7 May 2001 19:45:18 +0300
> 
> basic_filebuf::sync() always advances file pointer by number of bytes 
> stored in buffer for output (see seekoff at end of this procedure).
> 
> It's OK for example for Linux when there is no special format for text 
> files. For DOS (and perhaps also Windows) we're getting problems as 
> adding CR before LF is done by fwrite() and as result sync() 
> incorrectly moves current pointer back.

DO I understand correctly that libstdc++ uses its own buffering (as
opposed to the buffering code implemented in libc.a for stdio)?

If so, it should use code similar to what the DJGPP library does for
buffered I/O functions.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]