| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | "Herb Martin" <HerbM AT LearnQuick DOT Com> |
| To: | "'Cygwin List'" <cygwin AT cygwin DOT com> |
| Subject: | RE: stat file -- cygwin vs. Windows size? |
| Date: | Fri, 24 Jun 2005 13:08:17 -0500 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <6.2.1.2.0.20050624134407.0635f708@pop.prospeed.net> |
| X-Spam-Flag: | NO |
| X-Spam-DCC: | : |
| X-Spam-Pyzor: | Reported 0 times. |
| Message-ID: | <20206A8F2DE2@mail.learnquick.com> |
> >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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |