A program that runs using the microsoft/dotnet:2.2-aspnetcore-runtime-alpine image returns a wrong value for CultureInfo.GetCultureInfo("da-DK"), specifically the details inside NumberFormat. The following screenshot is a capture from a debug session in the running container:
It can be seen that the culture is in fact set to da-DK but the NumberDecimalSeparator in Denmark is not . but ,. Running the same code running of the microsoft/dotnet:2.2-aspnetcore-runtime image works.
Steps to reproduce the issue
Compile a program that runs CultureInfo.GetCultureInfo("da-DK").
Run the program inside a container that uses the microsoft/dotnet:2.2-aspnetcore-runtime-alpine base image.
Observe the returned CultureInfo. It has wrong NumberFormat values.
Expected behavior
It is expected that the details do not differ between the alpine and non-alpine base images.
Describe the bug
A program that runs using the
microsoft/dotnet:2.2-aspnetcore-runtime-alpine
image returns a wrong value forCultureInfo.GetCultureInfo("da-DK")
, specifically the details insideNumberFormat
. The following screenshot is a capture from a debug session in the running container:It can be seen that the culture is in fact set to
da-DK
but theNumberDecimalSeparator
in Denmark is not.
but,
. Running the same code running of themicrosoft/dotnet:2.2-aspnetcore-runtime
image works.Steps to reproduce the issue
CultureInfo.GetCultureInfo("da-DK")
.microsoft/dotnet:2.2-aspnetcore-runtime-alpine
base image.CultureInfo
. It has wrongNumberFormat
values.Expected behavior
It is expected that the details do not differ between the alpine and non-alpine base images.
Additional information