Microsoft KB Archive/884536

= Locale-dependent routines that are used in C programs may use a locale that is different from what is expected in Windows 2000 =

Article ID: 884536

Article Last Modified on 5/21/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Advanced Server

-





SYMPTOMS
When you run C programs that use any locale-dependent routines in Microsoft Windows 2000, the locale-dependent routines may use the user locale instead of the locale that you expect to be used. You are not informed that the locale has been changed.



CAUSE
This problem may occur if you run a program that calls any one of the Win32 performance data helper (PDH) functions. The PDH functions may change the locale when entering but the PDH functions may not restore the original locale when exiting.

For example, if your program calls the PdhEnumObjectItems PDH function, the C runtime library locale may be changed from the default C locale to the operating system user locale. After the PDH call has been made, all C runtime locale-dependent routines use the user locale. This may not be the locale that you expect the C locale-dependent routines to use.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
Windows 2000 Service Pack 4.

Restart requirement
You do not have to restart your computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix 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 tool in Control Panel.   Date         Time   Version        Size     File name -  22-Sep-2004  20:32  5.0.2195.6978  154,896  Pdh.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

