summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/UPT/Core/FileHook.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/UPT/Core/FileHook.py')
-rw-r--r--BaseTools/Source/Python/UPT/Core/FileHook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/UPT/Core/FileHook.py b/BaseTools/Source/Python/UPT/Core/FileHook.py
index 247dc4bd34..ceae12fb37 100644
--- a/BaseTools/Source/Python/UPT/Core/FileHook.py
+++ b/BaseTools/Source/Python/UPT/Core/FileHook.py
@@ -66,7 +66,7 @@ class RecoverMgr:
arc = self._tryhook(path)
if arc and os.path.isfile(path):
self._createzip()
- self.zip.write(path, arc)
+ self.zip.write(path, arc.encode('utf_8'))
sta = os.stat(path)
oldmode = stat.S_IMODE(sta.st_mode)
self.rlist.append(_PathInfo(_CHMOD, path, oldmode))