zlacker

[return to "What's up with all those equals signs anyway?"]
1. quibon+n5[view] [source] 2026-02-03 10:19:29
>>todsac+(OP)
CLRF vs LF strikes again. Partly at least.

I wonder why even have a max line length limit in the first place? I.e. is this for a technical reason or just display related?

◧◩
2. brk+Xs[view] [source] 2026-02-03 13:12:49
>>quibon+n5
Wait, now we have to deal with Carriage Line Return Feeds too?

I wonder if the person who had the idea of virtualizing the typewriter carriage knew how much trouble they would cause over time.

◧◩◪
3. keybor+6x[view] [source] 2026-02-03 13:37:43
>>brk+Xs
Yeah, and using two bytes for a single line termination (or separation or whatever)? Why make things more complicated and take more space at the same time?
◧◩◪◨
4. floren+nB[view] [source] 2026-02-03 14:01:28
>>keybor+6x
Remember that back in the mists of time, computers used typewriter-esque machines for user interaction and text output. You had to send a CR followed by an LF to go to the next line on the physical device. Storing both characters in the file meant the OS didn't need to insert any additional characters when printing. Having two separate characters let you do tricks like overstriking (just send CR, no LF)
◧◩◪◨⬒
5. kstrau+O71[view] [source] 2026-02-03 16:26:45
>>floren+nB
True, but I don’t think there was a common reason to ever send a linefeed without going back to the beginning. Were people printing lots of vertical pipe characters at column 70 or something?

It would’ve been far less messy to make printers process linefeed like \n acts today, and omit the redundant CR. Then you could still use CR for those overstrike purposes but have a 1-byte universal newline character, which we almost finally have today now that Windows mostly stopped resisting the inevitable.

◧◩◪◨⬒⬓
6. saila+sz1[view] [source] 2026-02-03 18:15:09
>>kstrau+O71
> now that Windows mostly stopped resisting the inevitable

I've been trying to get Visual Studio to stop mucking with line endings and encodings for years. I've searched and set all the relevant settings I could find, including using a .editorconfig file, but it refuses to be consistent. Someone please tell me I'm wrong and there's a way to force LF and UTF-8 no-BOM for all files all the time. I can't believe how much time I waste on this, mainly so diffs are clean.

◧◩◪◨⬒⬓⬔
7. kstrau+0K1[view] [source] 2026-02-03 18:52:56
>>saila+sz1
Ugh, I didn't realize it was still that bad.

How far can you get with setting core.autocrlf on your machine? See https://git-scm.com/book/en/v2/Customizing-Git-Git-Configura...

[go to top]