Fixed an issue in the terminal windows when non-latin1 characters are entered.

Mon, 26 Mar 2012 19:38:22 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 26 Mar 2012 19:38:22 +0200
changeset 1739
db21de268131
parent 1736
8b80cd598ebe
child 1740
6a92ffd41de8

Fixed an issue in the terminal windows when non-latin1 characters are entered.

QScintilla/Terminal.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Terminal.py	Sun Mar 25 17:53:22 2012 +0200
+++ b/QScintilla/Terminal.py	Mon Mar 26 19:38:22 2012 +0200
@@ -215,7 +215,7 @@
         @param data data to be sent to the shell process (string)
         """
         pdata = QByteArray()
-        pdata.append(data)
+        pdata.append(bytes(data, encoding="utf-8"))
         self.__process.write(pdata)
         
     def __sendCtrl(self, cmd):

eric ide

mercurial