Microsoft KB Archive/262283

= The input locale does not type the chosen keyboard mapping in the MS-DOS window =

Article ID: 262283

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q262283



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
When you use an alternate input locale with certain MS-DOS programs, the keyboard does not map characters, as expected.



MORE INFORMATION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

The 16-bit command prompt support for localized keyboards and characters requires keyboard mapping substitutions for certain languages. This behavior is observed only when you run previous 16-bit programs, not when you run 32-bit console-mode programs.

To determine which American National Standards Institute (ANSI) 16-bit MS-DOS keyboard layout is in use:  View the following registry value to determine your current locale ID (LCID):

HKEY_Current_User\Keyboard Layout\Preload\1 

 View the following registry value to determine if the LCID in use has a defined substitute:

HKEY_Current_User\Keyboard Layout\Substitutes\ 

NOTE: A subkey is not listed with your LCID if locale substitution is unnecessary. Locate your LCID or LCID substitute in the following registry key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout\DosKeybCodes

This key value is the two-letter MS-DOS keyboard code in use. The following list of country/region codes and MS-DOS keyboard mappings can help you identify a more suitable keyboard configuration. It is recommended that changes to Regional Settings be completed in Control Panel rather than directly in the registry.

The Kb16.com utility, previously known as the Keyb.com utility, starts automatically when a 16-bit MS-DOS program starts. In some situations, the keyboard mapping used with the Kb16.com utility differs from the 32-bit mapping. If the 16-bit mapping that you want is unavailable, you can use a third-party keyboard definition file as an argument with the Kb16.com utility. For example:

KEYB [ [,[ ][,[ :][ ] ]]] [/E] [/ID: ]


 * Where  specifies a two-letter keyboard code.
 * Where  specifies the code page for the character set.
 * Where,  , and   are the hard disk letter, folder path, and file name for an external keyboard definition file.
 * Where /E specifies that an enhanced keyboard is installed.
 * Where /ID: specifies the keyboard in use.

NOTE: Microsoft does not provide external definition files.

The following mode commands are code-page related:

Select code page: mode con[:] cp select=yyy

Code page status: mode con[:] cp [/status]

The following list shows the two-letter keyboard code for each country/region name:
 * Australia=us
 * Austria=gr
 * Belgium=be
 * Bosnia/Herzegovina=yu
 * Brazil=br
 * Bulgaria=bg
 * Canada French=cf
 * Canada English=cf
 * Chile=la
 * Colombia=la
 * Croatia=yu
 * Czech Republic=cz
 * Denmark=dk
 * Ecuador=la
 * Finland=su
 * France=fr
 * Germany=gr
 * Greece=gk
 * Hungary=hu
 * Iceland=is
 * Ireland=uk
 * Italy=it
 * Japan=jp
 * Latin America=la
 * Former Yugoslav Republic of Macedonia=yc
 * Mexico=la
 * Netherlands=nl
 * New Zealand=us
 * Norway=no
 * Poland=pl
 * Portugal=po
 * Romania=ro
 * Russia=ru
 * Serbia/Montenegro=yc
 * Slovakia=sl
 * Slovenia=yu
 * South Africa=us
 * Spain=sp
 * Sweden=sv
 * Switzerland=sf
 * Turkey=tr
 * United Kingdom=uk
 * United States=us
 * Venezuela=la

The documented valid values for the XX two-letter keyboard code argument that are listed in the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout\DosKeybCodes registry are:
 * 00000402=&quot;bg&quot;
 * 00000404=&quot;ch&quot;
 * 00000405=&quot;cz&quot;
 * 00000406=&quot;dk&quot;
 * 00000407=&quot;gr&quot;
 * 00000408=&quot;gk&quot;
 * 00000409=&quot;us&quot;
 * 0000040A=&quot;sp&quot;
 * 0000040B=&quot;su&quot;
 * 0000040C=&quot;fr&quot;
 * 0000040E=&quot;hu&quot;
 * 0000040F=&quot;is&quot;
 * 00000410=&quot;it&quot;
 * 00000411=&quot;jp&quot;
 * 00000412=&quot;ko&quot;
 * 00000413=&quot;nl&quot;
 * 00000414=&quot;no&quot;
 * 00000415=&quot;pl&quot;
 * 00000416=&quot;br&quot;
 * 00000418=&quot;ro&quot;
 * 00000419=&quot;ru&quot;
 * 0000041A=&quot;yu&quot;
 * 0000041B=&quot;sl&quot;
 * 0000041C=&quot;us&quot;
 * 0000041D=&quot;sv&quot;
 * 0000041F=&quot;tr&quot;
 * 00000422=&quot;us&quot;
 * 00000423=&quot;us&quot;
 * 00000424=&quot;yu&quot;
 * 00000425=&quot;et&quot;
 * 00000426=&quot;us&quot;
 * 00000427=&quot;us&quot;
 * 00000804=&quot;ch&quot;
 * 00000807=&quot;sg&quot;
 * 00000809=&quot;uk&quot;
 * 0000080A=&quot;la&quot;
 * 0000080C=&quot;be&quot;
 * 00000813=&quot;be&quot;
 * 00000816=&quot;po&quot;
 * 00000C0C=&quot;cf&quot;
 * 00000C1A=&quot;us&quot;
 * 00001009=&quot;us&quot;
 * 0000100C=&quot;sf&quot;
 * 00001809=&quot;us&quot;
 * 00010402=&quot;us&quot;
 * 00010405=&quot;cz&quot;
 * 00010407=&quot;gr&quot;
 * 00010408=&quot;gk&quot;
 * 00010409=&quot;dv&quot;
 * 0001040A=&quot;sp&quot;
 * 0001040E=&quot;hu&quot;
 * 00010410=&quot;it&quot;
 * 00010415=&quot;pl&quot;
 * 00010419=&quot;ru&quot;
 * 0001041B=&quot;sl&quot;
 * 0001041F=&quot;tr&quot;
 * 00010426=&quot;us&quot;
 * 00010C0C=&quot;cf&quot;
 * 00010C1A=&quot;us&quot;
 * 00020408=&quot;gk&quot;
 * 00020409=&quot;us&quot;
 * 00030409=&quot;usl&quot;
 * 00040409=&quot;usr&quot;
 * 00050408=&quot;gk&quot;

The documented valid values for the (optional) /Id: argument that are listed in the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout\DosKeybIDs registry are:
 * 00000410=&quot;141&quot;
 * 0000041F=&quot;179&quot;
 * 00010408=&quot;220&quot;
 * 00010410=&quot;142&quot;
 * 00010415=&quot;214&quot;
 * 0001041F=&quot;440&quot;
 * 00020408=&quot;319&quot;

A list of common OEM code pages (optionally used in the  parameter):
 * 437 (US)
 * 720 (Arabic)
 * 737 (Greek)
 * 775 (Baltic)
 * 850 (Western Europe)
 * 852 (Central Europe)
 * 855 (Cyrillic)
 * 857 (Turkish)
 * 862 (Hebrew)
 * 866 (Cyrillic II)

The following code pages are used as both Windows ANSI and OEM code pages:
 * 874 (Thai)
 * 932 (Japanese Shift-JIS)
 * 936 (Simplified Chinese GBK)
 * 949 (Korean)
 * 950 (Traditional Chinese Big5)
 * 1258 (Viet Nam)

For information about international computer-related topics, please see the following Microsoft Web site:

http://www.microsoft.com/globaldev

Additional query words: keyb kb16 mui

Keywords: kbenv kbinfo KB262283

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.