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
var languageCodes = new List<string>() { "nb", "no", "nn" };
foreach (var language in languageCodes)
{
try
{
var culture = CultureInfo.CreateSpecificCulture(language);
var today = DateTime.Now.ToString("dddd, dd MMM yyyy", CultureInfo.GetCultureInfo(language));
Console.WriteLine($"locale: {language}; date: {today}");
}
catch (Exception ex)
{
Console.WriteLine($"EXCEPTION: {ex}");
}
"nn" locale, initially considered an unresolved alias, is in fact a separate locale, not listed as KNOWN_CANONICALIZED. It probably should not be added to the ICU batch.
Expected behavior
Check on Console App, it prints correctly e.g.
Actual behavior
Regression?
No response
Known Workarounds
Use "nb" with the newest icu bundle.
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
Description
"no" is an alias of "nb" locale. While "nb" is working fine with the new icudt data files from https://github.com/ilonatommy/icu/tree/dotnet/main/eng/prebuilts, "no" is throwing an exception of incorrect culture name.
Reproduction Steps
"nn" locale, initially considered an unresolved alias, is in fact a separate locale, not listed as
KNOWN_CANONICALIZED
. It probably should not be added to the ICU batch.Expected behavior
Check on Console App, it prints correctly e.g.
Actual behavior
Regression?
No response
Known Workarounds
Use "nb" with the newest icu bundle.
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: