X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=3ae8d289cd14c84d3abee8b355849fb01d4fa64e;hb=cfb8506cad36cf393eef402f3929617d3dddd190;hp=30683097b57d7b61d666e5115b6f01f50739cd9a;hpb=5bf93e8c52febd744c56d72dbbb4edc0ccca0177;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 30683097..3ae8d289 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -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)