Globalization breaking changes in .NET Core 3.0
The following breaking changes are documented on this page:
|Breaking change||Version introduced|
|"C" locale maps to the invariant locale||3.0|
.NET Core 3.0
"C" locale maps to the invariant locale
.NET Core 2.2 and earlier versions depend on the default ICU behavior, which maps the "C" locale to the en_US_POSIX locale. The en_US_POSIX locale has an undesirable collation behavior, because it doesn't support case-insensitive string comparisons. Because some Linux distributions set the "C" locale as the default locale, users were experiencing unexpected behavior.
Starting with .NET Core 3.0, the "C" locale mapping has changed to use the Invariant locale instead of en_US_POSIX. The "C" locale to Invariant mapping is also applied to Windows for consistency.
Mapping "C" to en_US_POSIX culture caused customer confusion, because en_US_POSIX doesn't support case insensitive sorting/searching string operations. Because the "C" locale is used as a default locale in some of the Linux distros, customers experienced this undesired behavior on these operating systems.
Nothing specific more than the awareness of this change. This change affects only applications that use the "C" locale mapping.
All collation and culture APIs are affected by this change.
Submit and view feedback for