This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Binary file write has CRLF inserted


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]