Bug 117715

Summary: Fails to encript files with cyrillic letters
Product: [Applications] kgpg Reporter: Michael Lashkevich <lashkevi>
Component: generalAssignee: Jimmy Gilles <jimmygilles>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version: 1.2.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Cyrillic alphabet.
The alphabet encrypted by "gpg"
The file encrypted by kgpg

Description Michael Lashkevich 2005-12-05 13:20:37 UTC
Version:           1.2.1 (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs
OS:                Linux

When I encript the text in the kgpg editor that contains cyrillic letters and then decript it back, I receive the question signs instead of cyrillic letters. This is independent of pressing the View--Charset UTF-8 in the menubar.

This seems to be an encription problem, because decription by use of "gpg --decrypt" fails as well, while the files encripted by "gpg -s -a" are decripted almost properly (most of the letters but not all of them are decripted correctly).
Comment 1 Rolf Eike Beer 2007-09-01 16:16:56 UTC
Can you please:

-test encryption and decryption using plain gpg
-using KDE 3.5.7
-using KDE4 beta2

and report results here
Comment 2 Michael Lashkevich 2007-09-01 17:52:02 UTC
Created attachment 21522 [details]
Cyrillic alphabet.

This is the initial file to be encrypted.
Comment 3 Michael Lashkevich 2007-09-01 17:54:24 UTC
Created attachment 21523 [details]
The alphabet encrypted by "gpg"

The result of the encryption by "gpg -s -a".
Comment 4 Michael Lashkevich 2007-09-01 17:55:45 UTC
Created attachment 21524 [details]
The file encrypted by kgpg

The result of encryption using "kgpg"
Comment 5 Michael Lashkevich 2007-09-01 18:03:27 UTC
I cannot encrypt using KDE 3.5.7 neither KDE 4. (I need my computer for everyday use.) So I encrypted by plain "gpg":

gpg -s -a <x >y
gpg --decrypt <y >z

The files "x" and "y" are in the first two attachments above. (The file "x" is simply two copies of the Russian alphabet in lower and upper cases in koi8-r.) The file "z" coincides with "x".

Now I encrypt the file "x" with "kgpg" and save the result to the file "y1" (see the third attachment above). It differs from "y". When I decrypt it I get the file consisting of question marks instead of letters.
Comment 6 Nexion (Youri Catoire) 2007-09-08 23:36:51 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Rolf Eike Beer 2007-10-29 13:12:13 UTC
Fixed in r730630 by correctly converting the string to UTF8 before display.

For KDE4 there is a sort-of-workaround: click twice on View -> UTF8 and you'll get most characters right (doesn't work for russian 'R' from the example above).
Comment 8 shattered 2008-02-10 12:10:29 UTC
Still happens in 3.5.8; and View menu is empty, so I cannot switch encoding.