Symptoms
Consider the following scenario:
-
You configure a Windows Embedded Compact 7-based OS design to create a run-time image that has a default locale value of Japanese (Japan) - (ja-JP).
-
In the image, you create an application that uses National/Regional Language Support (NLS) functions to process some Japanese characters. For example, you use the MultiByteToWideChar function to map a Japanese character string to a wide-character (Unicode) string.
-
You start the image and run the application.
In this scenario, the Japanese characters are corrupted.
Note This issue does not occur if you specify the default locale as Japanese - (ja) or as Japanese - (Japan, radicalstroke sort) - (ja-JP_radstr).
Cause
This issue occurs because of incorrect information in the Localeoptions.pbcxml file. When Japanese (Japan) - (ja-JP) is set as the default locale, the incorrect information in the Localeoptions.pbcxml file causes the corresponding registry value not to be set when you create the OS image.
Resolution
Software update information
A supported software update is now available from Microsoft as Windows Embedded Compact 7 Monthly Update November 2011. In the "File information" section, the package file name contains the processor type.
Note This Windows Embedded Compact 7 Monthly Update is available for download from the following Microsoft Download Center website:
Windows Embedded Compact 7 Updates
Prerequisites
This update is supported only if all previously issued updates for this product have also been installed.
Restart requirement
After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
-
On the Build menu, click Clean Solution, and then click Build Solution.
-
On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.
Update replacement information
This update does not replace any other updates.
File information
The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Files that are included in this update package
File name |
File size |
Date |
Time |
Path |
---|---|---|---|---|
Localeoptions.pbcxml |
43,538 |
17-Nov-2011 |
23:41 |
Public\Cebase\Catalog |
References
For more information about how to use available localization options to configure your OS design, visit the following Microsoft Developer Network (MSDN) website:
OS Design Property Pages: Locale (Windows Embedded Compact 7)For more information about how to map a character string to a wide-character (Unicode) string, visit the following MSDN website:
MultiByteToWideChar (Windows Embedded Compact 7)For more information about National/Regional Language Support (NLS) functions, visit the following MSDN website:
National/Regional Language Support (NLS) Functions (Windows Embedded Compact 7)For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates