225 the contents pane. |
225 the contents pane. |
226 """ |
226 """ |
227 self.process.setReadChannel(QProcess.StandardOutput) |
227 self.process.setReadChannel(QProcess.StandardOutput) |
228 |
228 |
229 while self.process.canReadLine(): |
229 while self.process.canReadLine(): |
230 s = self.process.readLine() |
230 s = str(self.process.readLine(), self.__ioEncoding, 'replace') |
231 self.buf += s + os.linesep |
231 self.buf += s + os.linesep |
232 if not self.htmlOutput: |
232 if not self.htmlOutput: |
233 self.contents.insertPlainText(s) |
233 self.contents.insertPlainText(s) |
234 self.contents.ensureCursorVisible() |
234 self.contents.ensureCursorVisible() |
235 |
235 |