mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #8951] Explicitly setting DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 in Dockerfiles #11920
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/8951
State: closed
Merged: No
Context
https://github.com/jellyfin/jellyfin/pull/6629 implicitly disabled DOTNET_SYSTEM_GLOBALIZATION_INVARIANT in docker images. However, by only commenting out
=1and not explicitly setting=0, there exists at least one side effect of this.Detected side effect
dotnet-scriptand generate a script with the following code from StringExtensions.cs:DOTNET_SYSTEM_GLOBALIZATION_INVARIANT:Changes
Explicitly setting
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0Fixes
This change ensures that the unit tests we see in https://github.com/jellyfin/jellyfin/blob/master/tests/Jellyfin.Extensions.Tests/StringExtensionsTests.cs#L12 actually behave the same way in deployed Docker images. Otherwise the
CleanNamefield in library.db contains accents, resulting in false negative searches for titles that actually contain diacritics.