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

List:       kde-commits
Subject:    Re: KDE/kdelibs/kdeprint
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2007-06-23 11:08:32
Message-ID: 20070623110832.GB4140 () ugly ! local
[Download RAW message or body]

whoops, forgot this one ...

On Fri, Jun 15, 2007 at 12:50:20AM +0000, Andreas Pakulat wrote:
> --- trunk/KDE/kdelibs/kdeprint/kprintprocess.cpp #675758:675759
> @@ -50,36 +49,37 @@
> -void KPrintProcess::slotReceivedStderr(K3Process *proc, char *buf, int len)
> +void KPrintProcess::slotReceivedStderr()
>  {
> -	if (proc == this)
> -	{
> -		QByteArray	str = QByteArray(buf,len).trimmed();
> -		m_buffer.append(str.append("\n"));
> -	}
> +	QByteArray	str = readAll().trimmed();
> +	m_buffer.append(QString::fromLocal8Bit(str.append("\n")));
>  }
>  
this is another utf8-timebomb. trim line-wise, obviously.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
[prev in list] [next in list] [prev in thread] [next in thread] 

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