Skip to content

Commit

Permalink
More fixes for UTF-8 characters in manifests files
Browse files Browse the repository at this point in the history
  • Loading branch information
pyhalov committed Mar 10, 2020
1 parent 900da3c commit 12dd412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/client/transport/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ def _prefetch_manifests_list(self, mxfr, mlist, excludes=misc.EmptyI):
continue

try:
mf = open(dl_path)
mf = open(dl_path, "r", encoding="UTF-8")
mcontent = mf.read()
mf.close()
manifest.FactoredManifest(fmri,
Expand Down Expand Up @@ -1776,7 +1776,7 @@ def _verify_manifest(self, fmri, mfstpath=None, content=None, pub=None):
return False

if mfstpath:
mf = open(mfstpath)
mf = open(mfstpath, "r", encoding="UTF-8")
mcontent = mf.read()
mf.close()
elif content is not None:
Expand Down
2 changes: 1 addition & 1 deletion src/modules/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ def store(self, mfst_path):
e.filename)
raise

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

#
# We specifically avoid sorting manifests before writing
Expand Down

0 comments on commit 12dd412

Please sign in to comment.