This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++-v3: bug in handling text files for DJGPP
- To: djgpp-workers at delorie dot com
- Subject: Re: libstdc++-v3: bug in handling text files for DJGPP
- From: "Eli Zaretskii" <eliz at is dot elta dot co dot il>
- Date: Mon, 07 May 2001 21:10:51 +0300
- CC: libstdc++ at gcc dot gnu dot org, pavenis at lanet dot lv
- References: <3AF6FB4E.3915.208439A@localhost>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> 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.