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

[wasi] System.Globalization.CultureNotFoundException : Only the invariant culture is supported in globalization-invariant mode. #81908

Closed
radical opened this issue Feb 9, 2023 · 4 comments · Fixed by #82444
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Globalization os-wasi Related to WASI variant of arch-wasm test-failure
Milestone

Comments

@radical
Copy link
Member

radical commented Feb 9, 2023

build, and Log:

[22:28:39] fail: [FAIL] System.SpanTests.TryWriteTests.AppendFormatted_ValueTypes_CreateProviderFlowed
[22:28:39] info: System.Globalization.CultureNotFoundException : Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
[22:28:39] info: en-US is an invalid culture identifier.
[22:28:39] info:    at System.Globalization.CultureInfo..ctor(String , Boolean )
[22:28:39] info:    at System.Globalization.CultureInfo..ctor(String )
[22:28:39] info:    at System.SpanTests.TryWriteTests.<AppendFormatted_ValueTypes_CreateProviderFlowed>g__Test|10_0[FormattableInt32Wrapper](FormattableInt32Wrapper t)
[22:28:39] info:    at System.SpanTests.TryWriteTests.AppendFormatted_ValueTypes_CreateProviderFlowed()
[22:28:39] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , IntPtr* )
[22:28:39] info:    at System.Reflection.MethodInvoker.Invoke(Object , IntPtr* , BindingFlags )

cc @pavelsavara @mkhamoyan

@radical radical added arch-wasm WebAssembly architecture test-failure os-wasi Related to WASI variant of arch-wasm labels Feb 9, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Feb 9, 2023
@ghost
Copy link

ghost commented Feb 9, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

build, and Log:

[22:28:39] fail: [FAIL] System.SpanTests.TryWriteTests.AppendFormatted_ValueTypes_CreateProviderFlowed
[22:28:39] info: System.Globalization.CultureNotFoundException : Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
[22:28:39] info: en-US is an invalid culture identifier.
[22:28:39] info:    at System.Globalization.CultureInfo..ctor(String , Boolean )
[22:28:39] info:    at System.Globalization.CultureInfo..ctor(String )
[22:28:39] info:    at System.SpanTests.TryWriteTests.<AppendFormatted_ValueTypes_CreateProviderFlowed>g__Test|10_0[FormattableInt32Wrapper](FormattableInt32Wrapper t)
[22:28:39] info:    at System.SpanTests.TryWriteTests.AppendFormatted_ValueTypes_CreateProviderFlowed()
[22:28:39] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , IntPtr* )
[22:28:39] info:    at System.Reflection.MethodInvoker.Invoke(Object , IntPtr* , BindingFlags )

cc @pavelsavara @mkhamoyan

Author: radical
Assignees: -
Labels:

arch-wasm, test-failure, wasi

Milestone: -

@lewing lewing added this to the 8.0.0 milestone Feb 9, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Feb 9, 2023
@pavelsavara
Copy link
Member

Because

#define INVARIANT_GLOBALIZATION 1

@radical radical assigned radical and unassigned radical Feb 9, 2023
@radical
Copy link
Member Author

radical commented Feb 9, 2023

There are other changes needed too. I can't work on this right now, so unassigned myself.

@mkhamoyan
Copy link
Contributor

I can work on this next week.

@mkhamoyan mkhamoyan self-assigned this Feb 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2023
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-wasi Related to WASI variant of arch-wasm test-failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants