Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com From: "Herb Martin" To: Subject: stat file -- cygwin vs. Windows size? Date: Fri, 24 Jun 2005 12:06:18 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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@LearnQuick.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/