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
Bad sample with DOTNET_SYSTEM_GLOBALIZATION_INVARIANT disabled on alpine linux #4126
Comments
I think you're running into #3844. The The solution to #3844 is to install the |
@mthalman No matter whether I use We use
in our Dockerfile. I'll wait and check the updated template to see if it will work as expected then. Otherwise I guess I'll have to file a bug with the dotnet runtime for wrong culture info on (alpine) linux... |
You can see my updates to the samples here: #4127 |
@mthalman |
Describe the Bug
dotnet-docker/samples/dotnetapp/Dockerfile.alpine-x64
Line 22 in 56f6d1d
Is configuring
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
but by testing this does not disable invariant mode.That is, when I create a
CultureInfo
with a name likede-ch
It has wrong currency symbol and number- and date formats set.To correctly disable invariant globalization mode I had to change to
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
(
0
instead offalse
).Note that I did my testing on .net 6 but I expect this hasn't been touched for .net 7?
The text was updated successfully, but these errors were encountered: