microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.31k stars 2.21k forks source link

Croatia Currency #1367

Open GioviQ opened 1 year ago

GioviQ commented 1 year ago

Crotia will switched to EURO from January 1st.

I have a production app using .NET 4.7.2, will CultureInfo return the new currecy?

danmoseley commented 1 year ago

We pull the data from the OS, so it depends on how quickly there is a patch out (if there isn't already) and whether you patch the OS. On Linux/Mac, that would be an update to libicu/libicudata, on Windows it would be an OS update. (general info here https://learn.microsoft.com/en-us/dotnet/core/extensions/globalization-icu)

danmoseley commented 1 year ago

@tarekgh do you happen to know whether Windows updated ICU for this yet? Also just curious, do they have the ability to update ahead of time, and say "applied from date X" analogous to what they do for timezone changes?

GioviQ commented 1 year ago

.Net pull CultureInfo from OS even if OS is in english?

tarekgh commented 1 year ago

Adding @rp9-next @chetanladdha from Windows side to answer the raised questions.

.Net pull CultureInfo from OS even if OS is in english?

Yes. The only data we don't pull from the OS is the invariant culture data.

ShawnSteele commented 1 year ago

You can use the "locale builder" on Windows to create a custom locale for Croatia with the desired currency. https://www.microsoft.com/en-us/download/details.aspx?id=41158. Catch is that it has to be installed on all of the target machines. That works from Win7+.