Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

open in text mode (O_TEXT) (Developers)

posted by kerravon E-mail, Sydney, Free World South, 24.02.2025, 04:24

Oh - I forgot to mention.

I previously mentioned that I created what I
consider to be a "port of MSDOS to the mainframe".
You can see that - zpg.zip at pdos.org

Well, it is working, but when I use the mfemul.exe
mainframe emulator, I would like to be able to go:

type temp.txt
(to access the EBCDIC FAT32 disk)

and:
type :temp.txt
(to access temp.txt on the host system, which will
be in ASCII)

So the program (pcomm/command.exe/com) that converts
the "type" command into an fopen with "r" (not "rb"),
needs to have that "r" (text mode) status carried
all the way through so that mfemul knows that it needs
to do an ASCII to EBCDIC translation in the process.

It's not just about CRLF vs LF as in Cygwin. It's now
about ASCII to EBCDIC conversion *as well*.

BFN. Paul.

 

Complete thread:

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