From: Woongsuk Cho Date: Tue, 19 Apr 2022 23:40:16 +0000 (+0900) Subject: Add additional environment for invariant mode X-Git-Tag: submit/tizen/20220429.002649~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7222eeb1d491e663ac933800a265cbb2201448d;p=platform%2Fcore%2Fdotnet%2Flauncher.git 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 --- 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");