From dc43cb5356c6c8eb214f5861e2262e5124fb1f75 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 4 Nov 2023 15:53:17 +0300 Subject: [PATCH] unzip.py: Fix encoding --- bin/unzip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/unzip.py b/bin/unzip.py index e88e526..dd0a79f 100755 --- a/bin/unzip.py +++ b/bin/unzip.py @@ -30,7 +30,7 @@ for zinfo in zf.infolist(): path = path.decode('cp866') recoded_path = path.encode(default_encoding) else: - recoded_path = path + recoded_path = path.encode('cp437').decode('cp866') print(recoded_path) if path.startswith('./'): -- 2.39.5