The Crystal Programming Language Forum

Windows request: open files in binary by default?

Just ran into a classic ruby-ism today, in windows, opening a file in “w” vs “wb” (binary) mode:

This confuses every beginner…and makes it behave different by default in windows than linux

Suggestion/feature request: make “binary” the default open mode for windows (once we get there). Just a thought.