-
Notifications
You must be signed in to change notification settings - Fork 514
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
[net6] Thread.CurrentThread.CurrentCulture is invariant and does not follow the device culture #14740
Comments
@rolfbjarne isn't this an issue with dotnet runtime and not our bindings? |
There's initialization code inside mono ( A similar situation might be happening for The unit tests that would have found those issues are BCL tests - which are (or were) not run for dotnet profile :( |
@jeromelaban which regional settings is your device using? |
This looks similar to dotnet/maui#3962, but we weren't able to reproduce it. |
@rolfbjarne multiple, I tried on device and on simulator (en-US and fr-CA in current case). |
I can reproduce in both a macOS and Mac Catalyst app (so this affects both Mono and CoreCLR). I filed an issue in dotnet/runtime: dotnet/runtime#68321 |
The dotnet/runtime issue has been fixed, and will be shipped in a future .NET 6.0.* release. I don't think we'll need to do anything on our side, so I'm closing this. |
Steps to Reproduce
Thread.CurrentThread.CurrentCulture
andThread.CurrentThread.CurrentUICulture
Expected Behavior
The culture info is set to the current device culture, like it is with legacy mono/xamarin.
Actual Behavior
The culture info is set to the invariant culture.
Environment
RC1
Build Logs
The text was updated successfully, but these errors were encountered: