You are currently offline, waiting for your internet to reconnect

FIX: When you call the WideCharToMultiByte function to enable your application to use the GB18030 data converter in Windows Embedded CE 6.0, the return value of the function may be incorrect

In Microsoft Windows Embedded CE 6.0, you call the WideCharToMultiByte function to enable your application to use the GB18030 data converter. However, the return value of the function may be incorrect. This problem occurs when the following conditions are true:
  • The CodePage parameter of the function is set to 54936.
  • The cchWideChar parameter of the function is set to -1.
This problem occurs because the NULL termination character of the string is ignored when the cchWideChar parameter is set to -1.

Software update information

A supported software update is now available from Microsoft as Windows CE 6.0 Platform Builder Monthly Update (September 2008). You can confirm this by scrolling to the "File information" section of this article. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is:
Product version-yymmdd-kbnnnnnn-processor type
For example: Wincepb50-060503-kb917590-armv4i.msi is the ARMV4i Windows CE 5.0 Platform Builder fix that is documented in KB article 917590 and that is contained in the May 2006 monthly update. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:
837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products


This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this software 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, and then click Build Platform.
  • On the Build menu, click Rebuild Platform.
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 the later file attributes that are listed in the following table.

File nameFile sizeDateTime
Wincepb60-080911-kb957315- armv4i.msi750,59211-Sep-200822:08
Wincepb60-080911-kb957315- mipsii.msi750,08011-Sep-200822:08
Wincepb60-080911-kb957315- mipsii_fp.msi750,08011-Sep-200822:08
Wincepb60-080911-kb957315- mipsiv.msi750,59211-Sep-200822:08
Wincepb60-080911-kb957315- mipsiv_fp.msi750,59211-Sep-200822:08
Wincepb60-080911-kb957315- sh4.msi749,56811-Sep-200822:08
Wincepb60-080911-kb957315- x86.msi749,56811-Sep-200822:08

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.
File nameFile sizeDateTimePath
Gb18030.lib250,45829-Aug- 200823:44\public\common\oak\lib\armv4i\debug
Gb18030.lib245,59029-Aug- 200823:44\public\common\oak\lib\armv4i\retail
Gb18030.lib248,93429-Aug- 200823:44\public\common\oak\lib\mipsii\debug
Gb18030.lib244,91029-Aug- 200823:44\public\common\oak\lib\mipsii\retail
Gb18030.lib248,95629-Aug- 200823:44\public\common\oak\lib\mipsii_fp\debug
Gb18030.lib244,92829-Aug- 200823:44\public\common\oak\lib\mipsii_fp\retail
Gb18030.lib249,50229-Aug- 200823:44\public\common\oak\lib\mipsiv\debug
Gb18030.lib245,64629-Aug- 200823:44\public\common\oak\lib\mipsiv\retail
Gb18030.lib249,52429-Aug- 200823:44\public\common\oak\lib\mipsiv_fp\debug
Gb18030.lib245,66429-Aug- 200823:44\public\common\oak\lib\mipsiv_fp\retail
Gb18030.lib245,51229-Aug- 200823:44\public\common\oak\lib\sh4\debug
Gb18030.lib242,74029-Aug- 200823:44\public\common\oak\lib\sh4\retail
Gb18030.lib246,38229-Aug- 200823:44\public\common\oak\lib\x86\debug
Gb18030.lib244,35029-Aug- 200823:43\public\common\oak\lib\x86\retail
To work around this problem, follow these steps:
  1. Calculate the length of the character string. To do this, call the strlen function before you call WideCharToMultiByte function.
  2. Add 1 to the value that you obtained in step 1.
  3. Set the sum that you obtained in step 2 as the value of the cchWideChar parameter of WideCharToMultiByte function. Use this value instead of -1.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about the GB18030 data converter, visit the following Microsoft Developer Network (MSDN) Web site: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

Article ID: 957315 - Last Review: 09/26/2008 14:38:33 - Revision: 1.0

  • Windows Embedded CE 6.0
  • kbfix kbexpertiseadvanced kbqfe KB957315