mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 14:41:43 +00:00
paperkey.html - decode as utf-8, fixes #2150
hardcoded the encoding for reading it. while utf-8 is the default encoding on many systems, it does not work everywhere. and when it tries to decode with the ascii decoder, it fails.
This commit is contained in:
parent
11318c94dc
commit
8d432b01e1
1 changed files with 1 additions and 1 deletions
|
@ -1979,7 +1979,7 @@ def test_key_export_qr(self):
|
|||
repo_id = self._extract_repository_id(self.repository_path)
|
||||
self.cmd('key', 'export', '--qr-html', self.repository_location, export_file)
|
||||
|
||||
with open(export_file, 'r') as fd:
|
||||
with open(export_file, 'r', encoding='utf-8') as fd:
|
||||
export_contents = fd.read()
|
||||
|
||||
assert bin_to_hex(repo_id) in export_contents
|
||||
|
|
Loading…
Reference in a new issue