Package: mailcrypt
Version: 3.5.8-3
Severity: important

I ran into #234954 (8-bit characters causing signatures created via
mailcrypt to be invalid) again and spent an annoying amount of time
trying to figure out why.

It turns out that if language-environment is UTF-8 mailcrypt-sign will
mangle the signature of a buffer/file with non-ASCII (but valid UTF-8)
characters in it.  If I set language-environment to Latin-1, the
problem disappears.

To reproduce:

 o wget http://people.ubuntu.com/~james/misc/utf-8.changes
 o Set the language environment to UTF-8
 o Use mailcrypt-sign to sign the buffer/file
 o Save the buffer/file somewhere and try to validate the signature
   with gpg
    -> it fails

 o Set the language environment to Latin-1
 o Use mailcrypt-sign to sign the original buffer/file
 o Save the resulting buffer/file somewhere and try to validate the
   signature with gpg
    -> it works

-- 
James


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to