Fix problems with non-ASCII non-encoded PGP names
* lisp/epg.el (epg-signature-to-string): User IDs may be non-encoded, non-ASCII (bug#50706).
This commit is contained in:
parent
a202f6a39a
commit
8c4cb2fe06
1 changed files with 5 additions and 1 deletions
|
@ -433,7 +433,11 @@ callback data (if any)."
|
|||
(and user-id
|
||||
(concat " "
|
||||
(if (stringp user-id)
|
||||
(rfc6068-unhexify-string user-id)
|
||||
(if (= (length user-id) (string-bytes user-id))
|
||||
;; This is ASCII, possibly %-encoded.
|
||||
(rfc6068-unhexify-string user-id)
|
||||
;; Non-ASCII, return as is.
|
||||
user-id)
|
||||
(epg-decode-dn user-id))))
|
||||
(and (epg-signature-validity signature)
|
||||
(format " (trust %s)" (epg-signature-validity signature)))
|
||||
|
|
Loading…
Add table
Reference in a new issue