Commit e727bc89 authored by S. Zeid's avatar S. Zeid

[container,app] Fix Unicode errors

parent 200dba76
......@@ -173,7 +173,7 @@ each other and should have the ContainerClass LEGACY.
self.bundle_id = "invalid.appbackup.corrupted"
self.friendly = to_unicode(self.name.rsplit(u".app", 1)[0], errors="ignore")
self.sort_key = u"%s_%s" % (strip_latin_diacritics(self.friendly.lower()),
self.bundle_id)
to_unicode(self.bundle_id, errors="ignore"))
self.useable = False
try:
......@@ -187,7 +187,7 @@ each other and should have the ContainerClass LEGACY.
self.friendly = to_unicode(pl.get("CFBundleDisplayName", "").strip() or
self.name.rsplit(u".app", 1)[0], errors="ignore")
self.sort_key = u"%s_%s" % (strip_latin_diacritics(self.friendly.lower()),
self.bundle_id)
to_unicode(self.bundle_id, errors="ignore"))
self.useable = True
except propertylist.PropertyListError:
pass
......
......@@ -81,7 +81,7 @@ have their normal values, depending on the mood of the iOS developers.
def __init__(self, path):
"""Loads the container's info. path is the path to the container."""
self.path = os.path.abspath(path)
self.path = to_unicode(os.path.abspath(path))
self.uuid = os.path.basename(self.path).upper()
self.plist = os.path.join(self.path, CONTAINER_METADATA_PLIST)
self.class_ = self.class_raw = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment