Skip to content

Commit 12dd412

Browse files
committed
More fixes for UTF-8 characters in manifests files
1 parent 900da3c commit 12dd412

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/modules/client/transport/transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ def _prefetch_manifests_list(self, mxfr, mlist, excludes=misc.EmptyI):
16861686
continue
16871687

16881688
try:
1689-
mf = open(dl_path)
1689+
mf = open(dl_path, "r", encoding="UTF-8")
16901690
mcontent = mf.read()
16911691
mf.close()
16921692
manifest.FactoredManifest(fmri,
@@ -1776,7 +1776,7 @@ def _verify_manifest(self, fmri, mfstpath=None, content=None, pub=None):
17761776
return False
17771777

17781778
if mfstpath:
1779-
mf = open(mfstpath)
1779+
mf = open(mfstpath, "r", encoding="UTF-8")
17801780
mcontent = mf.read()
17811781
mf.close()
17821782
elif content is not None:

src/modules/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ def store(self, mfst_path):
13641364
e.filename)
13651365
raise
13661366

1367-
mfile = os.fdopen(fd, "w")
1367+
mfile = os.fdopen(fd, "w", encoding="UTF-8")
13681368

13691369
#
13701370
# We specifically avoid sorting manifests before writing

0 commit comments

Comments
 (0)