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

List:       licq-devel
Subject:    [Licq-devel] Wrong owner alias encoding when "show recent messages" - patch
From:       Martin Garbe <martin.garbe () uni-rostock ! de>
Date:       2006-04-30 17:47:00
Message-ID: 4454F814.9040105 () uni-rostock ! de
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

If you have set the option "show recent messages" you see the last 5
message when opening a new conversation window. Here problems occur if
you use german umlauts in the owner alias.
The problem ist that owner alias is alway saved in utf8 but licq uses
the user codec from the conversation to decode the alias.

The attached patch is correcting this.


cu
rsLeo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEVPgTuFcJvHsEu9gRAkzFAJ4vZEhH6/5/WEFgJ85gmc/ouhmlDQCgkacv
zwmIJTIw/GpEbdrtgM6/uhE=
=MGDD
-----END PGP SIGNATURE-----

["licq_owner_alias_encoding_patch.diff" (text/plain)]

--- licq_orig/plugins/qt-gui/src/usereventdlg.cpp	2006-01-17 23:19:13.000000000 +0100
+++ licq_patched/plugins/qt-gui/src/usereventdlg.cpp	2006-04-30 19:21:30.440156072 +0200
@@ -1597,7 +1597,7 @@
         QString ownerName;
         if (o)
         {
-          ownerName = codec->toUnicode(o->GetAlias());
+          ownerName = QString::fromUtf8(o->GetAlias());
           gUserManager.DropOwner(m_nPPID);
         }
         else

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Licq-devel mailing list
Licq-devel@licq.org
https://lists.sourceforge.net/lists/listinfo/licq-devel

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

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