Monday, July 13, 2015

.NETCF 3.5 under WEC7: “CompareInfo” for some supported languages fails

Hi floks,

the following problem is present in the .NET Compact Framework 3.5 under Windows Embedded Compact 7 but not under Windows Embedded CE 6.0:

Assuming you added all needed languages to your WEC7 OSDesign (selected in the Catalog and build), the following behavior can be seen for most non-western Latin character set languages like Polish or Mongolian, for common non-western Latin character set languages like Russian, there is a bug fix available from MSFT:

1.       Opening the class “CultureInfo” with a String (e.g. “mn-MN”) from a .NETCF 3.5 works without problems. This mean the language is supported, otherwise there would be “PlatformNotSupportedException
2.       However, calling the “CompareInfo” field of that generated class for the same language will throw the “PlatformNotSupportedExceptionindicating the language is NOT supported!

The problem here is that .NETCF 3.5 seems to still depend on the WinCE600 style NLS table support. To fix the problem, you need to make sure that the %_FLATRELEASE%\nlscfg.inf file contains the LCIDs of all languages you want to support. You can write a script adding the missing LCIDs based on the respective SYSGEN variables (SYSGEN_NLS_xx).


Have fun!

No comments:

Post a Comment