[Scummvm-git-logs] scummvm master -> fa3e3025bf36015e435c6e857eeb6da39b944846

sev- noreply at scummvm.org
Fri Jun 24 11:45:38 UTC 2022


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:
fa3e3025bf DEVTOOLS: COMPANION, COMMON: Add DEL character to be punycoded


Commit: fa3e3025bf36015e435c6e857eeb6da39b944846
    https://github.com/scummvm/scummvm/commit/fa3e3025bf36015e435c6e857eeb6da39b944846
Author: eientei (einstein95 at users.noreply.github.com)
Date: 2022-06-24T13:45:34+02:00

Commit Message:
DEVTOOLS: COMPANION, COMMON: Add DEL character to be punycoded

Changed paths:
    common/punycode.cpp
    devtools/dumper-companion.py


diff --git a/common/punycode.cpp b/common/punycode.cpp
index ea78c53f3d3..e57296bd07f 100644
--- a/common/punycode.cpp
+++ b/common/punycode.cpp
@@ -58,7 +58,7 @@ namespace Common {
 #define INITIAL_BIAS 72
 #define SMAX 2147483647 // maximum Unicode code point
 
-#define SPECIAL_SYMBOLS "/\":*|\\?%<>"
+#define SPECIAL_SYMBOLS "/\":*|\\?%<>\x7f"
 
 static uint32 adapt_bias(uint32 delta, unsigned n_points, int is_first) {
 	uint32 k;
diff --git a/devtools/dumper-companion.py b/devtools/dumper-companion.py
index 9df05d4da7c..fa53397b517 100755
--- a/devtools/dumper-companion.py
+++ b/devtools/dumper-companion.py
@@ -203,7 +203,7 @@ def escape_string(s: str) -> str:
     for char in s:
         if char == "\x81":
             new_name += "\x81\x79"
-        elif char in '/":*|\\?%<>' or ord(char) < 0x20:
+        elif char in '/":*|\\?%<>\x7f' or ord(char) < 0x20:
             new_name += "\x81" + chr(0x80 + ord(char))
         else:
             new_name += char
@@ -689,6 +689,7 @@ def test_decode_name():
         ],
         ["Buried in Timeェ Demo", "xn--Buried in Time Demo-yp97h"],
         ["ぱそすけPPC", "xn--PPC-873bpbxa3l"],
+        ["Madeline Pre-K\x7f Demo", "xn--Madeline Pre-K Demo-8a06x"],
     ]
     for input, output in checks:
         assert punyencode(input) == output




More information about the Scummvm-git-logs mailing list