[Scummvm-git-logs] scummvm master -> 09cfff6ac75c4e9fe99964f1f5aa7ef5bb500ee8

sev- sev at scummvm.org
Sat Nov 6 16:26:32 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
09cfff6ac7 ENGINES: Encode UTF files with punycode when reporting unknown md5s


Commit: 09cfff6ac75c4e9fe99964f1f5aa7ef5bb500ee8
    https://github.com/scummvm/scummvm/commit/09cfff6ac75c4e9fe99964f1f5aa7ef5bb500ee8
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-11-06T18:26:23+02:00

Commit Message:
ENGINES: Encode UTF files with punycode when reporting unknown md5s

Changed paths:
    engines/game.cpp


diff --git a/engines/game.cpp b/engines/game.cpp
index 2872f4c38a..b135b2e0f7 100644
--- a/engines/game.cpp
+++ b/engines/game.cpp
@@ -22,6 +22,7 @@
 
 #include "engines/game.h"
 #include "common/gui_options.h"
+#include "common/punycode.h"
 #include "common/translation.h"
 
 
@@ -244,7 +245,7 @@ Common::U32String generateUnknownGameReport(const DetectedGames &detectedGames,
 			addon += ", ADGF_TAILMD5";
 
 		report += Common::String::format("  {\"%s\", 0, \"%s\", %lld}%s,\n",
-			&file->_key.c_str()[2], // Skip the md5 prefix
+			Common::punycode_encodefilename(Common::U32String(&file->_key.c_str()[2])).c_str(), // Skip the md5 prefix
 			file->_value.md5.c_str(), (long long)file->_value.size, addon.c_str());
 	}
 




More information about the Scummvm-git-logs mailing list