Skip to content

When does core clr throw CultureNotSupported exception? #16457

@cdmihai

Description

@cdmihai

On windows, new CultureInfo("zh-CHS") or new CultureInfo("Shared") (bogus name) throw a CultureNotFoundException. On OSX they don't.
However, "zh-CHS" was obtained by calling CultureInfo.GetCultures(CultureTypes.AllCultures) on full framework. reading #14558 I get the understanding that any string is now fair game and should be supported.

In light of this, when can one expect CultureNotFoundException and why is zh-CHS not recognized on windows, when the full framework API returns it as supported?

Metadata

Metadata

Assignees

Labels

area-System.GlobalizationquestionAnswer questions and provide assistance, not an issue with source code or documentation.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions