ErrorReport.cpp generates "garbage" file
For some reason the ErrorReport.cpp code generates garbage content for MuError.log. This happens in both a Windows 11 x64 and in a Steam Deck (Linux) running with Proton 9 (AKA Wine).
Not sure if this is an encoding error or a flush/memory issue, because the file has many NULL (\0) characters, incomplete message (like "###### Log Be" instead of "###### Log Begin ######"), or even printf format being printed literally instead of its interpreted result (e.g. "Current version: %s" instead of "Current version: 1.0").
Here are some logs:
Please note that if you open the log file with a text editor which print the NULL character (Like VSCode or Notepad++), replace all instance of NULL with empty ("") so you can see the current content of the file