-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Enable Globalization to read the user setting overrides for current cultures when using ICU #37121
Comments
I expect this is by-design and due to switching to using ICU instead of NLS by default for globalization. |
@stephentoub is right. We are now using ICU by default. the doc link that @stephentoub mentioned has the way how to switch back using NLS instead of ICU to revert back to the old behavior. Please send any questions you have and we'll be happy to help with. |
Thanks, @stephentoub and @tarekgh I clearly understand the reason - using ICU instead of NLS. Should I always switch back to NLS to create desktop applications that take OS settings into account? |
@Dmitri-Botcharnikov maybe you're hitting this issue: #35638 ? This was fixed for Preview5. Could you try with our latest release and see if that works as expected? You can get the latest daily build from here: https://github.com/dotnet/installer/blob/master/README.md#installers-and-binaries |
@DmitryGaravsky that is a good point. we may try to look at this one and figure out if it make-sense using the overrides from the System. I am not expecting users to switch back to NLS just to pick the overrides. |
@DmitryGaravsky I have changed the title of the issue just to reflect what needs to be fixed. |
Thanks @tarekgh I've self assigned to start looking into it. |
Thanks, guys! I'll stay tuned |
What .Net preview version is we get the fix in? |
This is going to land on Preview8. I can’t point you to the first daily build that contains the fix for Powershell to try it out. |
@iSazonov I forgot to let you know as we were having trouble to update the SDK to a new runtime, but the latest daily SDK should contain this fix if you want to try it 😄 https://aka.ms/dotnet/net5/dev/Sdk/dotnet-sdk-win-x64.exe https://github.com/dotnet/installer/blob/master/README.md#installers-and-binaries |
Description
The DateTimeFormatInfo properties in Net Core 5 Preview 4 return different culture-specific information about the format of date and time values compared to .Net Framework in the same environment
Our unit tests detected this issue immediately. (we maintain unit tests for all the released and preview environments like .net core 5 in our codebase). Thus it is an important breaking change for us.
Configuration
OS Version: Microsoft Windows [Version 10.0.18362.535]
.Net Framework Version: Microsoft (R) .NET CLR Version Tool Version 4.8.3928.0
.Net Core Version: SDK Version: 5.0.100-preview.4.20258.7
Regression?
Yes, this works correctly until .Net Core 5 Preview 4
Other information
Here are some tests which fail under .Net Core 5 Preview 4
The text was updated successfully, but these errors were encountered: