aspnet / aspnet-docker

[Archived] ASP.NET Core Docker images for 1.x. Go to https://github.com/dotnet/dotnet-docker for 2.1 and up.
https://asp.net
719 stars 171 forks source link

CultureInfo.GetCultureInfo returns wrong value in alpine image #447

Closed rmja closed 5 years ago

rmja commented 5 years ago

Describe the bug

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: image

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

  1. Compile a program that runs CultureInfo.GetCultureInfo("da-DK").
  2. Run the program inside a container that uses the microsoft/dotnet:2.2-aspnetcore-runtime-alpine base image.
  3. 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.

Additional information

MichaelSimons commented 5 years ago

Moved to https://github.com/dotnet/dotnet-docker/issues/1110