delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/24/13:06:34

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 AT cygwin DOT com>
Subject: stat file -- cygwin vs. Windows size?
Date: Fri, 24 Jun 2005 12:06:18 -0500
MIME-Version: 1.0
X-Spam-Flag: NO
X-Spam-DCC: :
X-Spam-Pyzor: Reported 0 times.
Message-ID: <1FE7B1901E4A@mail.learnquick.com>

Is it likely that stat on a text file in cygwin would return
a 	.st_size large than the file size as used by cygwin
that is HIGHER than the physical number of characters once
the file is process character by character?

I am thinking \n: cr-lf vs. lf, and I am brand new to 
cygwin programming (only trying to debug a problem in
Exim email servers new content scan feature.)

This buffer is being built for SpamAssassin which later
gives an error saying (to the effect) 

"Content-Length mismatch: Expected 818 bytes, got 798 bytes"

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


Herb Martin
HerbM AT LearnQuick DOT Com http://LearnQuick.Com
512 388 7339   -or-   1 800 MCSE PRO
Accelerated MCSE in a Week Seminars


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019