Fix #3546: 修复游戏崩溃窗口乱码的问题 (#3867)

This commit is contained in:
Glavo
2025-04-27 22:15:30 +08:00
committed by GitHub
parent 05c5b53c52
commit d70712a18f
2 changed files with 21 additions and 1 deletions

View File

@@ -142,7 +142,7 @@ public class GameCrashWindow extends Stage {
String log;
try {
log = FileUtils.readText(latestLog);
log = FileUtils.readTextMaybeNativeEncoding(latestLog);
} catch (IOException e) {
LOG.warning("Failed to read logs/latest.log", e);
return pair(new HashSet<CrashReportAnalyzer.Result>(), new HashSet<String>());