Bug 147400

Summary: KGpg works incorrectly with non-latin charsets
Product: [openSUSE] openSUSE 10.2 Reporter: Alexander Lavrinenko <lavrinenko_alex>
Component: KDEAssignee: Petr Uzel <puzel>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: nadvornik, peterph
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: First tried to add UserID with KGpg
Next tried to add another UserID again with russian characters
After second try
Procedure of adding UserID from console
How UserID added from console looks like in KGpg
Wrong charset in message
Kgpg and console keys editing

Description Alexander Lavrinenko 2006-02-01 20:47:57 UTC
Greetings!

Seems that KGpg is unable to handle unicode correctly. My desktop is localised for russian, and when I try to modify my PGP key with KGpg after I enter Visible Name and Comment in relevant fields in russian, KGpg shows them as question sighs (?????? ??????). Please observe the screenshots attached.
Comment 1 Alexander Lavrinenko 2006-02-01 21:00:49 UTC
Created attachment 66093 [details]
First tried to add UserID with KGpg

Shot of KGpg after I tried to add yet another User ID to my exsisting key - quiestion signs seen instead of russian letters.
Comment 2 Alexander Lavrinenko 2006-02-01 21:02:38 UTC
Created attachment 66094 [details]
Next tried to add another UserID again with russian characters

Here is KGpg's dialog for adding another User ID to the exsisting key - once again, trying to add another ID with non-latin symbols.
Comment 3 Alexander Lavrinenko 2006-02-01 21:03:16 UTC
Created attachment 66095 [details]
After second try

Here how it looks after my second try
Comment 4 Alexander Lavrinenko 2006-02-01 21:05:27 UTC
Created attachment 66097 [details]
Procedure of adding UserID from console

This is successfull attempt to add UserID with UTF-8 from console. This was called with Alt+Return keystroke (or 'Edit from console' right-click menu item) from within KGpg.
Comment 5 Alexander Lavrinenko 2006-02-01 21:06:34 UTC
Created attachment 66098 [details]
How UserID added from console looks like in KGpg

And finally this is how successfully added UserID from console looks like in KGpg.
Comment 6 Alexander Lavrinenko 2006-02-01 21:28:01 UTC
Created attachment 66099 [details]
Wrong charset in message
Comment 8 Lukas Tinkl 2006-06-03 10:58:22 UTC
Fixed in KDE SVN by rev. 547761, will put in autobuild on Monday
Comment 9 Lukas Tinkl 2006-07-17 11:26:39 UTC
Probably no need to, it will appear in next SL version anyway
Comment 10 Alexander Lavrinenko 2007-03-20 21:52:16 UTC
The problem still persists in openSUSE 10.2 with latest updates.
Comment 11 Alexander Lavrinenko 2007-03-20 21:58:42 UTC
Created attachment 125584 [details]
Kgpg and console keys editing

Kgpg screenshot with "Edit key via konsole" konsole opened.
1 - wrong escape sequences instead of unicode symbols
2 - console key editing blocks Kgpg
Comment 13 Lukas Tinkl 2007-05-11 12:03:06 UTC
Hmm, I believe I fixed it some time ago, don't know what happened that it appeared again... :(
Comment 14 Vladimir Nadvornik 2007-10-18 09:47:46 UTC
new maintainer
Comment 15 Petr Cerny 2008-04-30 15:08:46 UTC
Leaving SUSE - reassigning to Vladimir.

I'm suspicious about gpg not using Unicode under some circumstances and confusing pinentry.
Comment 16 Petr Cerny 2008-04-30 15:11:05 UTC
Eh pinentry - I meant Kgpg. As for now, it seems to me, this is related to bug #305752.
Comment 17 Vladimir Nadvornik 2008-05-15 09:24:07 UTC
new maintainer
Comment 18 Petr Uzel 2008-06-16 11:06:24 UTC
The bug is caused by wrong parsing of 'gpg --list-keys --with-colons' output (in kgpg). Closing with wontfix, because
- already fixed in kgpg-4.x
- it's a minor issue not affecting functionality
- backporting the fix from KDE4 would not be trivial (because of major changes in underlying libraries)