[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Bug#16362: gpg: only latin1 messages can be signed correctly
From:       "Ingo H. Klöcker" <ingo.kloecker () mathA ! rwth-aachen ! de>
Date:       2000-12-01 17:27:20
[Download RAW message or body]

Package: kmail
Version: 1.2 (KDE 2.0)
Severity: normal
Compiler: gcc version 2.95.2 19991024 (release)
OS: Linux 2.2.14 i686 (compiled sources)

KMail version: current cvs

To reproduce this bug reply to the mail "Bug#16282: Encoding in composer" by Michael \
Haeckel (Nov 30 19:12:13). This mail uses koi8-r as charset. If you reply to this \
mail (and quote its contents) and then send it (or save it in the drafts folder) with \
enabled "sign message" button you will observe that the sent/saved message is broken. \
The problem seems to be that the message is passed to gpg via the following code \
line:

write(pin[1], input.data(), input.length());

If you have a look at qstring.h you will see that (the undocumented) QString::data() \
returns QString::latin1(). But obviously koi8-r and latin1 are not compatible. \
Therefore all russian characters are converted to \0. This has two effects:
1.) The signature is worth nothing because a latin1 version of the koi8-r message is \
signed. 2.) When the output of gpg (that is the signed message) is read it is \
truncated at the first \0.

Next week I will try to find a solution for this problem.

Regards,
Ingo
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic