Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser][hybrid][firefox] RangeError: invalid value "Cyrl" for option region #100955

Closed
pavelsavara opened this issue Apr 12, 2024 · 0 comments · Fixed by #100697
Closed

[browser][hybrid][firefox] RangeError: invalid value "Cyrl" for option region #100955

pavelsavara opened this issue Apr 12, 2024 · 0 comments · Fixed by #100697
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm
Milestone

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Apr 12, 2024

Log

[20:29:32] info: [FAIL] System.Globalization.Tests.DateTimeFormatInfoAbbreviatedMonthGenitiveNames.TestAbbreviatedGenitiveNamesWithAllCultures
[20:29:32] info: System.Exception : RangeError: invalid value "Cyrl" for option region
[20:29:32] info: ol<@mono_background_exec (http://127.0.0.1:35869/_framework/dotnet.runtime.js:3:185682

There are many more in the log:

 [FAIL] System.Globalization.Tests.CultureInfoConstructor.Ctor_String(name: "tzm-Latn", expectedNames: ["tzm-Latn"])
[20:29:35] info: System.Exception : RangeError: invalid value "Latn" for option region
[FAIL] System.Globalization.Tests.DateTimeFormatInfoNativeCalendarName.NativeCalendarName_Get_ReturnsExpected_HybridGlobalization(format: DateTimeFormatInfo { AbbreviatedDayNames = ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", ···], AbbreviatedMonthGenitiveNames = ["محرم", "صفر", "ربيع الأول", "ربيع الآخر", "جمادى الأولى", ···], AbbreviatedMonthNames = ["محرم", "صفر", "ربيع الأول", "ربيع الآخر", "جمادى الأولى", ···], AMDesignator = "ص", Calendar = UmAlQuraCalendar { AlgorithmType = LunarCalendar, Eras = [···], IsReadOnly = False, MaxSupportedDateTime = 2077-11-16T23:59:59.9999999, MinSupportedDateTime = 1900-04-30T00:00:00.0000000, ··· }, ··· }, expected: "islamic-umalqura")
[20:29:38] info: Assert.Equal() Failure: Strings differ
[20:29:38] info:            ↓ (pos 0)
[20:29:38] info: Expected: "islamic-umalqura"
[20:29:38] info: Actual:   "UMALQURA"
[FAIL] System.Globalization.Tests.DateTimeFormatInfoNativeCalendarName.NativeCalendarName_Get_ReturnsExpected_HybridGlobalization(format: DateTimeFormatInfo { AbbreviatedDayNames = ["እሑድ", "ሰኞ", "ማክሰ", "ረቡዕ", "ሐሙስ", ···], AbbreviatedMonthGenitiveNames = ["ጃንዩ", "ፌብሩ", "ማርች", "ኤፕሪ", "ሜይ", ···], AbbreviatedMonthNames = ["ጃንዩ", "ፌብሩ", "ማርች", "ኤፕሪ", "ሜይ", ···], AMDesignator = "ጥዋት", Calendar = GregorianCalendar { AlgorithmType = SolarCalendar, CalendarType = Localized, Eras = [···], IsReadOnly = False, MaxSupportedDateTime = 9999-12-31T23:59:59.9999999, ··· }, ··· }, expected: "gregory")
[20:29:38] info: Assert.Equal() Failure: Strings differ
[20:29:38] info:            ↓ (pos 0)
[20:29:38] info: Expected: "gregory"
[20:29:38] info: Actual:   "GREGORIAN"
[FAIL] System.Globalization.Tests.DateTimeFormatInfoFirstDayOfWeek.FirstDayOfWeekHybridGlobalization(culture: "en-AU", expected: Monday)
[20:29:39] info: Failed for culture: en-AU. Expected: Monday, Actual: Sunday
[FAIL] System.Globalization.Tests.CompareInfoTests.GetCompareInfo(name: "zh-Hans")
[20:29:43] info: System.Exception : RangeError: invalid value "Hans" for option region
[FAIL] System.Globalization.Tests.CompareInfoTests.GetCompareInfo(name: "zh-Hant")
[20:29:43] info: System.Exception : RangeError: invalid value "Hant" for option region

Other log

[FAIL] System.Globalization.Tests.RegionInfoPropertyTests.Ctor_InvalidName_ThrowsArgumentException(name: "no-such-culture")
[20:30:05] info: Assert.Throws() Failure: Exception type was not an exact match
[20:30:05] info: Expected: typeof(System.ArgumentException)
[20:30:05] info: Actual:   typeof(System.Exception)
[20:30:05] info: ---- System.Exception : RangeError: invalid value "culture" for option region
 [FAIL] System.Globalization.Tests.CultureInfoConstructor.TestCreationWithMangledSortName(cultureName: "de-DE-u-co-phonebk-t-xx-u-yy", expectedCultureName: "de-DE-t-xx-u-yy", expectedSortName: "de-DE-t-xx-u-yy_phoneboo")
[20:30:29] info: System.Exception : RangeError: invalid value "de-DE-t-xx-u" for option language
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm labels Apr 12, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 12, 2024
@lewing lewing added this to the 9.0.0 milestone Apr 13, 2024
@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Apr 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants