# Expand default component
if component == "":
- comp = get_component(section, session)
- if comp is None:
- component = "main"
- else:
- component = comp.component_name
+ component = "main"
return (section, component)
except IndexError:
continue
try:
- uid = codecs.decode(uid.decode("utf-8"), "unicode_escape")
+ # Do not use unicode_escape, because it is locale-specific
+ uid = codecs.decode(uid, "string_escape").decode("utf-8")
except UnicodeDecodeError:
uid = uid.decode("latin1") # does not fail
m = re_parse_maintainer.match(uid)