joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.83k stars 383 forks source link

DOSBox-X in PC-98 mode will not let me install Windows 3.1 unless I go into Japanese mode. #1971

Closed rembu2001 closed 4 years ago

rembu2001 commented 4 years ago

EDIT: Answered, set country=81 in the dosbox-x.conf.

Found a Windows 3.1 install, specifically the one for NEC/Epson OEM.

Mounted the .img file as a virtual drive using ImDisk and when I tried to run Setup.exe it said "You cannot install Windows 3.1 on English mode. Try on Japanese mode."

How do I go into Japanese mode? pc98

joncampbell123 commented 4 years ago

Interesting, DOSBox-X with machine=pc98 should respond to country/locale INT 21h calls with code page data suggesting Japanese.

joncampbell123 commented 4 years ago

Does it help if you add to dosbox.conf

[pc98] pc-98 BIOS copyright string=true

Some versions of MS-DOS and Windows for PC-98 check for a copyright string in ROM in order to fail on Epson clones.

joncampbell123 commented 4 years ago

Actually...

Does it help if you change your Windows locale to Japanese?

src/dos/dos.cpp line 1907 appears to use your Windows locale when asked extended country information on Windows.

rembu2001 commented 4 years ago

Actually...

Does it help if you change your Windows locale to Japanese?

src/dos/dos.cpp line 1907 appears to use your Windows locale when asked extended country information on Windows.

I have a locale emulator, lemme try that.

EDIT: Doesn't work on 64-bit DOSBox-X. Lemme try the 32-bit version.

EDIT 2: Nope, didn't work either. Lemme try changing my entire locale to Japanese.

Wengier commented 4 years ago

@joncampbell123 The dos.cpp code will use the Windows locale with the setting COUNTRY=0. But it can be customized with either the "country" setting in [config] section or the COUNTRY command. So for example the setting "country=81" (or the "COUNTRY 81" command from the shell) will hopefully use the Japanese country code.

Wengier commented 4 years ago

@passerine-cult I just checked myself. Typing the command "COUNTRY 81" before running PC-98 Windows 3.1 Setup should let it run. Please check it out.

rembu2001 commented 4 years ago

@passerine-cult I just checked myself. Typing the command "COUNTRY 81" before running PC-98 Windows 3.1 Setup should let it run. Please check it out.

That worked! Thanks :)