Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: NLS functions do not work correctly in Windows Embedded Compact 7 when the default locale is ja-JP


View products that this article applies to.

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).

↑ Back to the top


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.

↑ Back to the top


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:

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 nameFile sizeDateTimePath
Localeoptions.pbcxml43,53817-Nov-201123:41Public\Cebase\Catalog

↑ Back to the top


References

For more information about how to use available localization options to configure your OS design, visit the following Microsoft Developer Network (MSDN) website:For more information about how to map a character string to a wide-character (Unicode) string, visit the following MSDN website:For more information about National/Regional Language Support (NLS) functions, visit the following MSDN website: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

↑ Back to the top


Keywords: kbnotautohotfix, kbfix, kbqfe, kbpubtypekc, kbexpertiseinter, kb

↑ Back to the top

Article Info
Article ID : 2634122
Revision : 1
Created on : 1/7/2017
Published on : 12/13/2011
Exists online : False
Views : 206