.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
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");