-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
MSBuild output garbled #64276
Comments
I can't reproduce in Linux, is this only reproducible in Windows? |
I think so. Other operating systems usually use UTF-8 for all languages. |
C# uses UTF-16 for strings, to set the value in the log (a |
I found that starting Godot with
|
C# is supported in If the issue is related to the changes that were made to support the new Windows Terminal, then I believe the relevant PRs are #55925 and #55967. @bruvzg might know more about it. |
I was not able to get any non-English output from But with a few custom apps that's printing wide strings, I get incorrect output when using both wrapper script and executable. Seems like a regression from #60920, Windows console encoding handling is extremely inconsistent, so it might fix in on a one system and break on another. |
I reverted ddb7774 locally and tested, the issue is not resolved. I found out that godot/modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs Lines 56 to 88 in 850c5cc
|
@bruvzg If you are using @timothyqiu The only thing that changed between 3.4.5 and 3.5 in |
Yeah. I removed |
Since I'm out of ideas I think then the best way to find the commit that caused the regression is to test with the 3.5 betas and RCs to narrow the range of possible commits and then |
4.0 still uses the wrong encoding If you change the dotnet language for example to Russian (
|
@DmitriySalnikov Note that this was an issue independent of Godot in the .NET SDK as well, which should be fixed in 8.0 preview 1 and 7.0.300 dotnet/sdk#29755 |
An example of what might be wrong: OS_Windows::execute uses MultiByteToWideChar with CP_ACP. CP_ACP defaults to 125x. |
Godot version
3.5.stable.mono
System information
Windows 10 & 11
Issue description
I've got a feedback that the build output in MSBuild panel is garbled when there are Chinese characters:
Works fine on 3.4.5:
.exe
. Starting via the.cmd
works fine.GD.Print()
to the Output panel) works fine.Steps to reproduce
Start godot by double clicking the
.exe
, not the.cmd
file.Build anything in C# in Chinese (probably also any non-English) environment.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: