You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to work with PerformanceCounters when running with Globalization Invariant Mode #65502
PerformanceCounter's was creating culture objects using LCID. When running with Globalization Invariant Mode, it is not allowed to create any culture using LCID. Also, if the switch DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY is set to true there, it will not allow creating any culture even using culture names except the Invariant culture. That means PerformanceCounter library will not be usable at all when enabling the Globalization Invariant Mode.
The fix here is to allow running PerformanceCounter with the Globalization Invariant Mode and always report counters matching the English language at that time.
Activity
tarekgh commentedon Mar 10, 2022
The PR #65537 fixed this.