VOGONS


First post, by maxsim

User metadata
Rank Newbie
Rank
Newbie

Does anyone have an idea of how much work it would be to be able to change codepage for the system such that I get support for Swedish letter, ÅÄÖ?

Reply 1 of 15, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

Either

(1) type at the command prompt in DOSBOX:

config -set "keyboard layout=sv"

or (2) enter at the DOS prompt:

KEYB sv

or (3)

find (search the wiki for its location) dosbox.conf and find the line that begins

keyboardlayout=auto

and change it to

keyboardlayout=sv

And this is described (with Swedish used as the example) here:

http://www.dosbox.com/wiki/KEYB

Reply 3 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

You can type swedish but you can't create swedish filenames. AFAIU that's how dos worked, so there is not going to be a solution

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 4 of 15, by maxsim

User metadata
Rank Newbie
Rank
Newbie

I have continued too Google a lot and what I believe that I am actually looking for is Long filename (lfn) support since this would support UTF-16?

Do you know of a thread where they discuss LFN?

Reply 5 of 15, by maxsim

User metadata
Rank Newbie
Rank
Newbie

Extra:
For ppl who want to run SV under 437 instead 850 which is standard.

I could not configure the configfile such that
-------------------------
keyboardlayout=sv
------------------------
Would give you 437.

Instead I added following under autoexec in the config file:
-------------------
KEYB sv 437
------------------
This gives you Codepage 437 with layout SV.

Reply 6 of 15, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

There is no way to access long file names in mounted directories using DOSBox, as there are no DOS games that require this capability. You can copy files to a hard disk image, and then boot a version of DOS with long file name support to access the files on the disk image, but that's as far as it goes.

Alternatively, you can just use VMware, VirtualBox, or some other virtualization program.

Reply 7 of 15, by maxsim

User metadata
Rank Newbie
Rank
Newbie

We already had a solution where we were using wmware. Using DosBox for what we do works well except that it would be nice with LFN. And I know DosBox is meant for games. Still I'm interested to see how much work it would be to add that support, and if there is someone who knows of a thread that is discussing this?

What we have figured out how to do so far is:
1. Printing nice PDF using LaserPrinting driver.
2. Copying text to DosBos.
3. How to have the folders synced to Dropbox
4. Using 437 CP and SV layout.

Feels sad to stop now when the environment does so much cool things. 😀

So next step, LFN.
And also copy from DosBox

Reply 9 of 15, by maxsim

User metadata
Rank Newbie
Rank
Newbie

1. Print to file using following code in conf:
parallel1=file append:C:\output.txt

Then catch that file with the windows program DOSPRN. Which gives you a nice PDF even for Laserjet printers.

2. Using the Clip program in windows then press break to paste

3.Just mount a part where dropbox is a part then press ctrl F4 and it will reread "update" the folders which you added the file to.

Reply 11 of 15, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

After entering KEYB SV 437:

Hold down the right-hand Alt key (AltGr on many European keyboards) and press 4; that produces $.
Hold down the right-hand Alt key (AltGr on many European keyboards) and press 3; that produces £.

Reply 12 of 15, by Battler

User metadata
Rank Member
Rank
Member
Dominus wrote:

You can type swedish but you can't create swedish filenames. AFAIU that's how dos worked, so there is not going to be a solution

Which is wrong. MS-DOS in fact did suport non-English file names. It even had special tables in COUNTRY.SYS for character capitalization in file names. MS-DOS supported without problems the usage of characters 0x80 to 0xFF in file names, with the sole exception of one character (I forgot which) which if a file name begins with it, it means the file is deleted.

Reply 13 of 15, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie
Battler wrote:

MS-DOS supported without problems the usage of characters 0x80 to 0xFF in file names, with the sole exception of one character (I forgot which) which if a file name begins with it, it means the file is deleted.

You just brought back a long-forgotten memory! The character that signified a deleted file was E5. Just fire up your copy of the Norton Utilities, go to the disk editor, and change E5 to something else, and your file magically comes back to life. I forgot all about that...

Reply 14 of 15, by Battler

User metadata
Rank Member
Rank
Member

And I think the 0xE5 limitation only applies to the very first character of the file name. Since Japanese versions of DOS use that character without problem in non-first position in file names (it is a valid DBCS trail byte in code page 932).

Reply 15 of 15, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

Yes, that's right - when you deleted a file, the first character in the filename got replaced by E5. That's why undelete programs restored the filename with (I think) a question mark as the first character.)