this post was submitted on 05 Apr 2025
161 points (96.0% liked)

Programmer Humor

34976 readers
4 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] SpaceNoodle@lemmy.world 6 points 1 week ago (1 children)

Ahhh, I see. Looks like the magic happens somewhere further down in iostream.

[โ€“] AnyOldName3@lemmy.world 3 points 1 week ago

It's controlled by whether the stream's opened in text mode or binary mode. On Unix, they're the same, but on Windows, text mode has line ending conversion.