> > 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.

Not with Win32! Have a look into src/support/os_win32.C. There
os::read:mode() does return "rb" for Win32!

> > 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.

I do agree ;-)

> > 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?

Yes! See above!

Claus


Reply via email to