This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: stat file -- cygwin vs. Windows size?
- From: "Herb Martin" <HerbM at LearnQuick dot Com>
- To: "'Cygwin List'" <cygwin at cygwin dot com>
- Date: Fri, 24 Jun 2005 13:08:17 -0500
- Subject: RE: stat file -- cygwin vs. Windows size?
> >My suspicion is that stat is counting cr-lf as two
> characters but the
> >input routines are treating these as one.
> >
> >If the file has about 20 lines, then that's 20 missing characters???
>
>
> Yes, this is right. And yes, this could be the cause of the
> situation you're noticing.
Is there a standard Cygwin 'idiom' or function for
dealing with this mismatch, or should I just re-invent
the wheel.
Seems like I read (skimmed) something related to this
in the Cygwin manual, probably near the back in the
programming introduction....
I know I picked up the concept somewhere (somewhere
recent that is, as I have dealt with this across at
least five different OS conventions but not recently
and specifically on Cygwin.)
--
Thanks,
Herb
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/