in reply to Re^4: Detect line endings with CGI.pm upload
in thread Detect line endings with CGI.pm upload
On Windows \n is CRLF, not LF, even in C. This can cause problems when reading and writing files that shold be binary but are written as text and vice versa.
Update: as ikegami correctly points out, I was conflating the disk version with the in memory version of these strings. \n should always be the line feed (in memory) and the I/O subsystem should have converted it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Detect line endings with CGI.pm upload
by ikegami (Patriarch) on Dec 29, 2008 at 00:39 UTC |