On Tue, Jan 07, 2003 at 05:27:33PM +0100, Claus Hentschel wrote:
> > Lars> Andre Poenitz <[EMAIL PROTECTED]> writes:
> > Lars> | On Tue, Jan 07, 2003 at 12:31:00PM +0100, Andre' Poenitz wrote:
> > Lars> | > I just got confirmation from de.comp.lang.iso-c++ that | >
> > Lars> getline() should never return the '\r' if the stream is in | >
> > Lars> text mode.
> 
> That's the reason! In Lyx we do open *all* files the same way, i.e. in
> binary mode by default.

No, the default mode is text.

> To distinguish between text/binary mode we should have to enhance the os
> classes and should have to check all calls to any open function/system call!
> A lot of work! Should we do that?

Probably not.

> Right, I'm using gcc:
>     Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
>     gcc version 2.95.3-5 (cygwin special)
> But that doesn't matter because all compilers will pass through a CR in
> binary mode ;-)

Do you see that '\r' problem with gcc?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to