Regional Settings

K

Keith

I have a custom shell that has English, German and Chinese languages.
I am able to switch (with reboot) to these different locales and have a
problem with displaying Chinese characters in a message dialog. It
appears that the fonts aren't being substituted properly. I looked
into the registry and the font substitutes where non-existent. The
problem stems from when I switch the system locale to Chinese the
following error shows up in setupapi.log in the windows directory.

#E008 Setting registry value HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink\SimSun
#E033 Error 13: The data is invalid.
#E065 Parsing AddReg section [NLS.Registry.CHS] in
"C:\WINDOWS\INF\intl.inf" failed. Error 13: The data is invalid.
#E064 Parsing install section [00000804] in "C:\WINDOWS\INF\intl.inf"
failed. Error 13: The data is invalid.

The code page seems to switch correctly because most of the controls
and other windows stuff has the correct characters but it seems to show
up when they need to use the font substitutes.

My development system XP Pro works fine.

I tried setting the locale manually with the Intl.cpl and it shows me
an error:

"Setup was unable to install the chosen locale. Please contact your
system Administrator"

What am I missing in my image that would cause the regional settings to
give me such a message?

Thank you

Keith.
 
K

KM

Keith,

I don't have a good solution for you as I never played with Chinese builds.
But I'd suggest you to look under [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] key.
Delete values there for the fonts you suspect aren't substituted properly (e.g., MS Sanf Serif).
 
K

Keith

KM,

Thank you for your suggestions. The only solution (more like work
around) that I got to work was editing the intl.inf file in the inf
folder. I just commented out the possible lines that were complained
about in the setupapi.log file.

It does not explain why it works on my development system and not on
the XPE target system. I suppose it must be a missing component or
update.

The following is a section from intl.inf

Thanks,

Keith.

[NLS.Registry.CHS]
HKLM,System\CurrentControlSet\Control\NLS\Codepage, ACP,,936
HKLM,System\CurrentControlSet\Control\NLS\Codepage,OEMCP,,936
HKLM,System\CurrentControlSet\Control\NLS\Codepage,MACCP,,10008
HKLM,"Software\Microsoft\Windows
NT\CurrentVersion\FontMapper","DEFAULT",0x00010001,134
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink",FontLinkControl,0x00010001,0x00004000
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink",FontLinkDefaultChar,0x00010001,0x00003000
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink",Tahoma,0x00010008,"SimSun.TTC,SimSun"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink","Microsoft Sans
Serif",0x00010008,"SimSun.TTC,SimSun"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink",Tahoma,0x00010008,"gulim.ttc,gulim"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink","Microsoft Sans
Serif",0x00010008,"gulim.ttc,gulim"
;HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink","SimSun",0x00010008,"gulim.ttc,gulim"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink",Tahoma,0x00010008,"MSGOTHIC.TTC,MS
UI Gothic"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink","Microsoft Sans
Serif",0x00010008,"MSGOTHIC.TTC,MS UI Gothic"
;HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink","SimSun",0x00010008,"MSGOTHIC.TTC,MS
UI Gothic"

HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink",Tahoma,0x00010008,"mingliu.ttc,PMingLiU"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink","Microsoft Sans
Serif",0x00010008,"mingliu.ttc,PMingLiU"
;HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\FontLink\SystemLink","SimSun",0x00010008,"mingliu.ttc,PMingLiU"

HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
Charset",ANSI(00),,YES
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
Charset",OEM(FF),,YES
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
Charset",SYMBOL(02),,NO
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",AssocSystemFont,,simsun.ttc
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",FontPackage,,"新宋体"
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",FontPackageDontCare,,"新宋体"
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",FontPackageRoman,,"新宋体"
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",FontPackageSwiss,,"新宋体"
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",FontPackageModern,,"新宋体"
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",FontPackageScript,,"新宋体"
HKLM,"SYSTEM\CurrentControlSet\Control\FontAssoc\Associated
DefaultFonts",FontPackageDecorative,,"新宋体"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top