[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r")

From: E. Weddington
Subject: Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay]
Date: Thu, 12 Aug 2004 16:00:28 -0600
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Theodore A. Roth wrote:

I have this nagging feeling that you have exposed a bug in avrdude. I
suspect that you are using avrdude on windows that avrdude is opening
the binary file for reading using

 fopen (file, "r");

when it should be using

 fopen (file, "rb");

If memory serves, "r" and "rb" are the same on most Unix systems, but
have a subtle difference on Windows (end-of-line translation?). Any
windows experts care to comment on this?
Hmm. It looks like this was supposed to be taken care of. See fileio.c, function fileio() (line 890 according to 4.4.0 sources). There's a conditional compilation for Windows.

I've also CC'd avrdude-dev.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]