Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS tool to convert letters in text file to upper/lowercase. (Miscellaneous)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 31.10.2022, 16:12
(edited by bretjohn on 31.10.2022, 22:07)

> But I didn't find a tolower() function. My guess: If the user supplied,
> e.g., lowercase "bäh" on the command line, DOS/command.com had to look for
> files like BÄH.EXE or BÄH.BAT, because uppercase is how filenames are
> stored on (FAT) disks. There simply was no need for a tolower() function.

Exactly. The DOS kernel really doesn't have a need for a tolower() function.

> Oh, INT 21 -
> DOS 3.3+ - GET EXTENDED COUNTRY INFORMATION reads "03h (DOS 6.2+
> COUNTRY.SYS) get pointer to lowercase table".

That is correct, but the contents of that table depend on the current Code Page. E.g., the Code Page I normally use is 437, but I have played around with some of the other Code Pages as well due to the nature of some of my programs (both released and unreleased/experimental). I think for at least most of the Code Pages, there are both lower-case and upper-case of the Latin-based letters that are in the Code Page. In such cases, you can go back and forth between lower- and upper-case if you need to.

But Code Page 437 also has some Greek letters (e.g., Alpha and Beta and Mu and Omega) but only has one of the two cases in the Code Page. So, even though those letters have case-equivalents you may never know it based on what DOS can tell you. DOS can't do a case-conversion unless there is something to display on the screen, and that depends on the Code Page.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 147 users online (0 registered, 147 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum