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

List:       kde-commits
Subject:    kdebindings/kjsembed
From:       Ian Reinhart Geiser <geiseri () kde ! org>
Date:       2005-02-27 14:23:20
Message-ID: 20050227142320.4AB9B148A2 () office ! kde ! org
[Download RAW message or body]

CVS commit by geiseri: 

Qt seems to drop newlines from the shell feedback.  We should preserve them
so developers can easier parse the feedback.  I will try to backport this fix.

Thanks Dom

BUGS:98194 


  M +3 -3      ksimpleprocess.cpp   1.8


--- kdebindings/kjsembed/ksimpleprocess.cpp  #1.7:1.8
@@ -77,5 +77,5 @@ void KSimpleProcess::slotProcessExited()
 {
         while( m_proc->canReadLineStdout() )
-                m_currBuffer += m_proc->readLineStdout();
+                m_currBuffer += m_proc->readLineStdout() + '\n';
         qApp->exit_loop();
 }
@@ -83,10 +83,10 @@ void KSimpleProcess::slotProcessExited()
 void KSimpleProcess::slotReceivedStdout()
 {
-        m_currBuffer += m_proc->readLineStdout();
+        m_currBuffer += m_proc->readLineStdout() + '\n';
 }
 
 void KSimpleProcess::slotReceivedStderr()
 {
-        m_currBuffer += m_proc->readLineStderr();
+        m_currBuffer += m_proc->readLineStderr() + '\n';
 }
 


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

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