Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Was: Ctrl-Z was never actually an EOF character in MS-DOS (Miscellaneous)

posted by tkchia Homepage, 11.02.2026, 16:43
(edited by tkchia on 11.02.2026, 17:07)

Hello bencollver,

It turns out that Michal Necasek had written a reply to precisely this article, where he basically said, "well actually"... :-)

https://www.os2museum.com/wp/misconceptions-on-top-of-misconceptions/

> What CP/M versions 1.x/2.x as well as 86-DOS 0.x had in common is that file sizes were not stored with byte granularity. Instead, file sizes were only tracked in terms of 128-byte "records", which typically happened to correspond to 128-byte floppy disk sectors.
>
> ... for text files, or possibly other data files, this was a problem. No one wanted up to 127 bytes of junk displayed on the screen or sent to the printer. CP/M, like old DEC operating systems, adopted the ASCII SUB (substitute) character in order to solve the problem.

So Ctrl-Z in text files was really a weird holdover from the days of MS-DOS 1.x FCBs. (Incidentally, DOS 1.x lossage also explains why uncompressed .exe files tend to have their MZ headers padded up to a multiple of 512 bytes, even though MZ headers lengths are given as 16-byte paragraphs...)

Thank you!

---
https://codeberg.org/tkchia · https://disroot.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

 

Complete thread:

Back to the forum
Board view  Mix view
23247 Postings in 2191 Threads, 405 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum