2004-07-22 Joerg Wunsch * include/stdio.h: Doc update: binary vs. raw streams explained, fix for savannah bug #9704. Index: include/stdio.h =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/include/stdio.h,v retrieving revision 1.14 diff -u -r1.14 stdio.h --- include/stdio.h 12 Nov 2003 20:50:02 -0000 1.14 +++ include/stdio.h 22 Jul 2004 11:06:14 -0000 @@ -93,6 +93,12 @@ the linefeed, its \c put() routine must implement this (see \ref stdio_note2 "note 2"). + It should be noted that the automatic conversion of a newline + character into a carriage return - newline sequence breaks binary + transfers. If binary transfers are desired, no automatic + conversion should be performed, but instead any string that aims + to issue a CR-LF sequence must use "\r\n" explicitly. + For convenience, the first call to \c fdevopen() that opens a stream for reading will cause the resulting stream to be aliased to \c stdin. Likewise, the first call to \c fdevopen() that opens