Y
Hacker News
new
|
ask
|
show
|
jobs
by
Dwedit
455 days ago
It's also detecting when a file on DOS/Windows is opened in "ASCII mode" rather than binary mode. When opened in ASCII mode, "\r\n" is automatically converted to "\n" upon reading the data.