On Saturday 16 September 2006 14:34, Eugene Paskevich wrote:
> On Sat, 16 Sep 2006 15:31:47 +0300, Eugene Paskevich
>
> <[EMAIL PROTECTED]> wrote:
> > There is an encoding mistreatment in the user tooltip
> > as I can observe on my installation.

Could you please test the attached patch and let me know if it works for you.

// Erik

-- 
If the designers of X-Windows built cars, there would be no fewer 
than five steering wheels hidden about the cockpit, none of which 
followed the same principles -- but you'd be able to shift gears 
with your car stereo. Useful feature, that. 
  -- Marus J. Ranum, Digital Equipment Corporation

Erik Johansson
http://ejohansson.se
Index: src/userbox.cpp
===================================================================
--- src/userbox.cpp	(revision 4606)
+++ src/userbox.cpp	(working copy)
@@ -1693,17 +1693,17 @@
       + QString("</nobr>");
     
     if (*u->GetAlias() && gMainWindow->m_bPopAlias)
-      s += tr("<br><nobr>") + codec->toUnicode(u->GetAlias()) + tr("</nobr>");
+      s += tr("<br><nobr>") + QString::fromUtf8(u->GetAlias()) + tr("</nobr>");
 
     if ((*u->GetFirstName() || *u->GetLastName()) && gMainWindow->m_bPopName)
     {
       s += tr("<br><nobr>");
       if (*u->GetFirstName())
-        s += codec->toUnicode(u->GetFirstName());
+        s += QString::fromUtf8(u->GetFirstName());
       if (*u->GetFirstName() && *u->GetLastName())
         s += " ";
       if (*u->GetLastName())
-        s += codec->toUnicode(u->GetLastName());
+        s += QString::fromUtf8(u->GetLastName());
       s += tr("</nobr>");
     }
 

Attachment: pgpp4exJiLRJt.pgp
Description: PGP signature

Reply via email to