From a7222eeb1d491e663ac933800a265cbb2201448d Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Wed, 20 Apr 2022 08:40:16 +0900 Subject: [PATCH] Add additional environment for invariant mode .NET 6 contains breaking change related to globalization invariant mode. (https://docs.microsoft.com/en-us/dotnet/core/compatibility/globalization/6.0/culture-creation-invariant-mode) For backward compatibility, add an additional environment variable to avoid breaking changes - DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY=false --- NativeLauncher/launcher/exec/launcher.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/NativeLauncher/launcher/exec/launcher.cc b/NativeLauncher/launcher/exec/launcher.cc index 7f8b8d4..dcb8e89 100644 --- a/NativeLauncher/launcher/exec/launcher.cc +++ b/NativeLauncher/launcher/exec/launcher.cc @@ -61,6 +61,7 @@ int main(int argc, char *argv[]) if (GlobalizationInvariantOption.compare(argv[i]) == 0) { setenv("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "1", 1); + setenv("DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY", "false", 1); } else if (StandaloneOption.compare(argv[i]) == 0) { if (i > argc - 1) { _ERR("Assembly path must be after \"--standalone\" option"); -- 2.7.4