Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug #3293] Windows file open mode wrong in raw output format. #2

Closed
avrs-admin opened this issue Dec 10, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@avrs-admin
Copy link

Mon 21 Apr 2003 03:50:22 PM UTC

From Lou Cypher on AVR Freaks:

"I'm using AvrDude 4 as shipped with WinAVR, and I discovered a bug in the binary output format (as in "avrdude -c xx -p yy -f r -o file.bin"), since it seems to always open files in 'translated' mode, instead of using 'binary' mode.

This works well with Unix and alikes, since a '\n' has the same representation in the two modes, while on Windows it is translated in "\r\n", that has the nasty side effects of an additional 0x0D in the output -- fopen() needing a check for "wb" mode?"

This issue was migrated from https://savannah.nongnu.org/bugs/?3293

@avrs-admin avrs-admin added the bug Something isn't working label Dec 10, 2021
@avrs-admin
Copy link
Author

Eric Weddington
Wed 23 Apr 2003 04:38:02 PM UTC

Fix committed in fileio.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant