Author Topic: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup  (Read 6233 times)

mauro

  • Sr. Member
  • ****
  • Posts: 410
  • Karma: +3/-0
    • View Profile
I've recently downloaded and use an OS2 W4.52 Virtualbox vdi machine ready to run, which have found working better than my previous self-installed machine.
It has been setted up by the creator with US-en settings, so affecting time and keyboard layout.  I can only temporary change the keyboard layout by selecting the one I need (Italian 142) but it is only for the active session, it will turn back at US-en on next reboot.  Also went to select IT-Euro in the Locale (Country) panel in System Setup as default choice, but it does not correct itself the keyboard layout mode, and -also important- the system clock always shows a wrong time, no way to change it in the Clock panel, after few moment the time turns at 6 hrs back, while date/year is ok. It is clearly pointed on a US time.
I still cannot find a remedy for it.
Do you have suggestions?
Thank you

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #1 on: January 13, 2019, 07:50:40 pm »
I think I had the same problem many years ago and had found the solution in the 'net. For Germany, I have these NLS-dependent entries in my CONFIG.SYS:

COUNTRY=049,D:\OS2\SYSTEM\COUNTRY.SYS
CODEPAGE=850,437
DEVINFO=KBD,GR129,D:\OS2\KEYBOARD.DCP
SET LANG=de_DE_EURO
SET TZ=CET-1CES,3,-1,0,7200,10,-1,0,10800,3600

You might want to change the KEYBOARD.DCP line to solve your problem. Also COUNTRY and LANG are different in Italy.

mauro

  • Sr. Member
  • ****
  • Posts: 410
  • Karma: +3/-0
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #2 on: January 13, 2019, 08:25:48 pm »
I think I had the same problem many years ago and had found the solution in the 'net. For Germany, I have these NLS-dependent entries in my CONFIG.SYS:

COUNTRY=049,D:\OS2\SYSTEM\COUNTRY.SYS
CODEPAGE=850,437
DEVINFO=KBD,GR129,D:\OS2\KEYBOARD.DCP
SET LANG=de_DE_EURO
SET TZ=CET-1CES,3,-1,0,7200,10,-1,0,10800,3600

You might want to change the KEYBOARD.DCP line to solve your problem. Also COUNTRY and LANG are different in Italy.

Yes,  I think those 5 rows would fix both keyboard layout and time issues, I had already changed the first one with code 039 which I know is for Italy, but I ignore the changes for the other four, I would need a codes references to read

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #3 on: January 13, 2019, 08:43:50 pm »
A short search in the 'net leads to:

COUNTRY=039,D:\OS2\SYSTEM\COUNTRY.SYS
CODEPAGE=850,437
DEVINFO=KBD,IT142,D:\OS2\KEYBOARD.DCP
SET LANG=it_IT_EURO
SET TZ=CET-1CES,3,-1,0,7200,10,-1,0,10800,3600

For the keyboard layout, probably this .pdf file is the reference. (I haven't read it now, I just guess that it might be IT and 142 from the search results.

On page 24 and 25 of the referred document, you'll find both Italian layouts: 141 and 142.
« Last Edit: January 13, 2019, 09:03:05 pm by Andreas Schnellbacher »

roberto

  • Hero Member
  • *****
  • Posts: 810
  • Karma: +3/-6
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #4 on: January 13, 2019, 09:48:48 pm »
In a command com
KEYB IT intro
and restart.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #5 on: January 14, 2019, 12:38:29 am »
"help keyb" shows this:

| KEYB switches the current keyboard layout for all sessions except WinOS2 to the selected layout.
| [...]
| In order to switch keyboard layouts, you must have a DEVINFO=KBD statement in your CONFIG.SYS.

Code: [Select]
[D:\]help keyb

[D:\]keyb
Current keyboard layout: GR 129.
Current keyboard translation table is based on code page: 850

[D:\]keyb it
The translation table for code page 850 has been loaded.
The translation table for code page 437 has been loaded.

[D:\]keyb
Current keyboard layout: IT 141.
Current keyboard translation table is based on code page: 850

[D:\]keyb gr
The translation table for code page 850 has been loaded.
The translation table for code page 437 has been loaded.

[D:\]

So, apparently the correct keyboard layout for IT is 141.

mauro

  • Sr. Member
  • ****
  • Posts: 410
  • Karma: +3/-0
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #6 on: January 14, 2019, 07:51:43 pm »
Andreas and Roberto, thinking better about that it was a config.sys lines matter, I remembered that still had the previous vdi machine installation made with Italian keyboard/Language in the initial settings.  At that point  have copied-replaced these lines from its config.sys to the one I wanted to correct:

COUNTRY=039,C:\OS2\SYSTEM\COUNTRY.SYS
CODEPAGE=850,437
DEVINFO=KBD,IT142,C:\OS2\KEYBOARD.DCP
SET LANG=it_IT_EURO
SET TZ=cet-1
SET TCPLANG=it_IT
SET LOCPATH=C:\IBMI18N\LOCALE;C:\LANGUAGE\LOCALE

and now I have Italian Language/keyboard as defaults, and the time is correct too.

Thanks for giving your suggestions

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #7 on: January 14, 2019, 09:24:07 pm »
Good, but for Italy, you should better set the proposed TZ env var. It's the same as here.

roberto

  • Hero Member
  • *****
  • Posts: 810
  • Karma: +3/-6
    • View Profile
Re: OS2 W4.52 (Virtualbox guest machine) language-time-keyboard setup
« Reply #8 on: January 14, 2019, 10:50:01 pm »
"help keyb" shows this:

| KEYB switches the current keyboard layout for all sessions except ***WinOS2**** to the selected layout.
| [...]
|
Thanks for the clarification, it is not the same to configure a system, that in the cd of boot change the keyboard that is what I do more often. For maintenance tasks.