Revision 711018

Go back to digest for 16th September 2007

Bug Fixes in Utilities

Rolf Eike Beer committed changes in /trunk/KDE/kdeutils/kgpg:

Fix the display of GnuPG encoded UTF8

GnuPG recodes some UTF8 characters as \xnn (where nn are hex numbers). When this happens to one of character of a multibyte entity (e.g. one of the bytes of a german umlaut) the display of this string is destroyed. We receive the data from K3ProcIO which does the transition from QByteArray to QString.

QString then does UTF8 recoding, finds an invalid entity and overwrites it.

Now you can't get the correct display even if you recode the \xnn to the original value.

Since I can't change K3ProcIO I copied it and modified it to do the \xnn recoding before the translation to QString.

File Changes

Added 2 files
  • /trunk/KDE/kdeutils/kgpg
  •   /gpgproc.cpp
  •   /gpgproc.h
Modified 3 files
  • /trunk/KDE/kdeutils/kgpg
  •   /CMakeLists.txt
  •   /kgpginterface.cpp
  •   /kgpginterface.h
5 files changed in total