-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 6.0.6: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 doesn't work any more #7747
Comments
I do not repro with that SDK: > set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
> del inv.csproj Program.cs
> dotnet new console
The template "Console App" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on S:\play\inv\inv.csproj...
Determining projects to restore...
All projects are up-to-date for restore.
Restore succeeded.
> dotnet --version
6.0.301 Are you seeing this consistently? Does this only happen if the primary OS language is non-US-English? |
This issue is marked as stale because feedback has been requested for 30 days with no response. Please respond within 14 days or this issue will be closed due to inactivity. |
This issue was closed due to inactivity. If you can still reproduce this bug, please comment with the requested information, detailed steps to reproduce the problem, or any other notes that might help in the investigation. |
Stumbled upon this issue while investigating how to work around the MSBuild slowdown caused by dotnet/runtime#31273. (I guess
Seemingly yes. Specifically, the difference is the codepage. Codepage 932 (Shift JIS, Japanese) reproduces the issue. 437 (OEM US) and 65001 (UTF-8) are fine. Repro:
|
I guess the exception is raised here ( Lines 1478 to 1488 in 2badb37
(In .NET 6) |
The bot didn't reactivate after @asmichi's comments and we missed this, sorry. |
As @asmichi pointed out above, if DOTNET_SYSTEM_GLOBALIZATION_INVARIANT is enabled and code page meets the conditions, msbuild will crash attempting to create CultureInfo For .NET 6 (currently latest version is 6.0.427), it till has this issue. Considering it's approaching the end of support very soon, it will probably be not fixed in .NET 6. |
Close as it's out of support now. |
Windows x64 .NET SDK 6.0.301. Languages: en-us, de-de, ru-ru.
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
doesn't work any more.sample.cmd
:Console output:
The text was updated successfully, but these errors were encountered: