diff --git a/isign/archive.py b/isign/archive.py index 12823768..5d9792fe 100644 --- a/isign/archive.py +++ b/isign/archive.py @@ -125,7 +125,7 @@ def precheck(self): def unarchive_to_temp(self): containing_dir = make_temp_dir() - call([get_helper('unzip'), "-qu", self.path, "-d", containing_dir]) + call([get_helper('unzip'), "-O", "UTF-8", "-qu", self.path, "-d", containing_dir]) app_dir = abspath(os.path.join(containing_dir, self.relative_app_dir)) return containing_dir, App(app_dir) diff --git a/isign/code_resources.py b/isign/code_resources.py index 65267cf9..b181adc1 100644 --- a/isign/code_resources.py +++ b/isign/code_resources.py @@ -147,9 +147,9 @@ def scan(self): val['optional'] = True if len(val) == 1 and 'hash' in val: - file_entries[relative_path] = val['hash'] + file_entries[relative_path.decode("utf-8")] = val['hash'] else: - file_entries[relative_path] = val + file_entries[relative_path.decode("utf-8")] = val for dirname in dirs: rule, path, relative_path = self.get_rule_and_paths(root,