Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: ericblake AT comcast DOT net (Eric Blake) To: DSP Tech , cygwin AT cygwin DOT com Subject: Re: Binary file write has CRLF inserted Date: Fri, 11 Nov 2005 14:45:06 +0000 Message-Id: <111120051445.21693.4374AE72000D3C82000054BD22069997350A050E040D0C079D0A@comcast.net> > I have used cygwin to build the GCC ARM tools and libraries. I am using the > cygwin1.dll for running my application on windows. > > fp = fopen("c:\\hi.yuv", "wb"); There's your problem. Use POSIX names if you want POSIX behavior. Try fopen("/cygdrive/c/hi.yuv") instead. -- Eric Blake -- 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/