未验证 提交 40aec5c7 编写于 作者: A Ansgar Burchardt

Merge remote-tracking branch 'helmut/fix-gpg_get_key_addresses'

......@@ -1381,7 +1381,8 @@ def gpg_get_key_addresses(fingerprint):
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册