Version: 0.8.0 (using KDE KDE 3.2.0) Installed from: Slackware Packages Compiler: GCC 3.3.2 OS: Linux I've just compiled and installed Kopete 0.8.0. Everything works fine beside if I set "Single shot window" on. Whenever I get a new message the incoming message window contains something like: --------------------------------- Message from steeeve at 18:02:54 no mi ha incasinato " 100>#0000001 --------------------------------- everything works fine in otherwise.
do you get the same strange characters if you use a regular chat window, rather than a single shot window?
No, I get them in single shot only. I tried both the version in official kdenetwork slackware packages and a compiled from source version. Removed all kopete related files in ~/.kde But the chars are still there. I can give my ICQ number if you want to do some real time tests. Or tell me if I can give you more infos or do some tests here.
Does it happen on every message you receive, regardless of protocol? Or does it happen with only one protocol? One more question. :) Does it only happen with one particular contact? Also, for future reference, you don't need to add my email address to the CC, I see all the bug reports anyways. :)
ok... sorry! :) back to the bug... yes I have that string on every incoming message, every protocol and every contact. Before submitting the bug i tested with ICQ and IRC and the 100>#0000001 string is always there. Could it be a missing " in the one shot window handling procedure? I noticed the " char at the beginning of the string.
Confirmed. I get: " 120>#0000001 Investigating...
Mine! Found...
CVS commit by lilachaze: .arg() won't work for %10 and %11... Fix bug 74985 CCMAIL: 74985@bugs.kde.org M +4 -2 kopeteemailwindow.cpp 1.34 --- kdenetwork/kopete/kopete/chatwindow/kopeteemailwindow.cpp #1.33:1.34 @@ -501,5 +501,6 @@ void KopeteEmailWindow::writeMessage( Ko QString dir = ( QApplication::reverseLayout() ? QString::fromLatin1("rtl") : QString::fromLatin1("ltr") ); d->htmlPart->begin(); - d->htmlPart->write( QString::fromLatin1( "<html><head><style>body{font-family:%1;font-size:%2pt;color:%3}td{font-family:%4;font-size:%5pt;color:%6}</style></head><body style=\"background-repeat:no-repeat;background-attachment:fixed\" bgcolor=\"%7\" vlink=\"%8\" link=\"%9\" %10>%11</body></html>" ) + //FIXME: this should use multi-argument version of .arg! + d->htmlPart->write( QString::fromLatin1( "<html><head><style>body {font-family:%1; font-size:%2pt; color:%3} td {font-family:%4; font-size:%5pt; color:%6}</style></head>" ) .arg( KopetePrefs::prefs()->fontFace().family() ) .arg( KopetePrefs::prefs()->fontFace().pointSize() ) @@ -507,5 +508,6 @@ void KopeteEmailWindow::writeMessage( Ko .arg( KopetePrefs::prefs()->fontFace().family() ) .arg( KopetePrefs::prefs()->fontFace().pointSize() ) - .arg( KopetePrefs::prefs()->textColor().name() ) + .arg( KopetePrefs::prefs()->textColor().name() ) ); + d->htmlPart->write( QString::fromLatin1( "<body style=\"background-repeat:no-repeat; background-attachment:fixed\" bgcolor=\"%1\" vlink=\"%2\" link=\"%3\" %4>%5</body></html>" ) .arg( KopetePrefs::prefs()->bgColor().name() ) .arg( KopetePrefs::prefs()->linkColor().name() )
CVS commit by lilachaze: .arg() won't work for %10 and %11... Fix bug 74985 [BACKPORT] CCMAIL: 74985-done@bugs.kde.org M +4 -2 kopeteemailwindow.cpp 1.30.2.1 --- kdenetwork/kopete/kopete/chatwindow/kopeteemailwindow.cpp #1.30:1.30.2.1 @@ -501,5 +501,6 @@ void KopeteEmailWindow::writeMessage( Ko QString dir = ( QApplication::reverseLayout() ? QString::fromLatin1("rtl") : QString::fromLatin1("ltr") ); d->htmlPart->begin(); - d->htmlPart->write( QString::fromLatin1( "<html><head><style>body{font-family:%1;font-size:%2pt;color:%3}td{font-family:%4;font-size:%5pt;color:%6}</style></head><body style=\"background-repeat:no-repeat;background-attachment:fixed\" bgcolor=\"%7\" vlink=\"%8\" link=\"%9\" %10>%11</body></html>" ) + //FIXME: this should use multi-argument version of .arg! + d->htmlPart->write( QString::fromLatin1( "<html><head><style>body {font-family:%1; font-size:%2pt; color:%3} td {font-family:%4; font-size:%5pt; color:%6}</style></head>" ) .arg( KopetePrefs::prefs()->fontFace().family() ) .arg( KopetePrefs::prefs()->fontFace().pointSize() ) @@ -507,5 +508,6 @@ void KopeteEmailWindow::writeMessage( Ko .arg( KopetePrefs::prefs()->fontFace().family() ) .arg( KopetePrefs::prefs()->fontFace().pointSize() ) - .arg( KopetePrefs::prefs()->textColor().name() ) + .arg( KopetePrefs::prefs()->textColor().name() ) ); + d->htmlPart->write( QString::fromLatin1( "<body style=\"background-repeat:no-repeat; background-attachment:fixed\" bgcolor=\"%1\" vlink=\"%2\" link=\"%3\" %4>%5</body></html>" ) .arg( KopetePrefs::prefs()->bgColor().name() ) .arg( KopetePrefs::prefs()->linkColor().name() )