Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To work around this problem, use one of the workarounds that follow. Both of these workarounds require that you add the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLEAUT
VarConversionLocaleSetting
You must set the
DWORD value of this key to 1. When you set this value to 1, Oleaut32.dll must select the conversion format that is based on the current identity of the thread that requests these values. If the user's profile does not exist or is not loaded in the registry, Oleaut32.dll uses the System Default settings from the
HKEY_USERS\.default\Control Panel\International registry hive.
Note Oleaut32.dll also exposes a function that can be called by the application directly, as an alternative to using the registry setting. This function is
SetVarConversionLocaleSetting(), and it accepts a single DWORD parameter that should match the 0, 1, or 2 values that are specified. Calling this function does not change the values in the registry. Instead, it sets global values in Oleaut32.dll in the calling process.
Workaround 1
Configure the service to run under a specific account, and set the Regional Options for this account to use an English locale. When you combine this with the
VarConversionLocaleSetting registry setting, the conversion is always executed under an English locale.
Workaround 2
If you permit the account to use non-English locale, modify the decimal separator (or decimal symbol) and thousand separator (or digit grouping symbol) to use the English equivalents. To do this, follow these steps:
- In Control Panel, double-click Regional Options.
- Click the Numbers tab in the Regional Options dialog box.
- In the Decimal symbol list, select the period (.).
- In the Digit grouping symbol list, select the comma (,).
- Click the Currency tab in the Regional Options dialog box.
- Repeat steps 3 and 4, and then click OK.