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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 26 Mar 2012 19:38:22 +0200
branch
5_2_x
changeset 1742
c34ac31c84aa
parent 1738
8533e79185b4
child 1744
a297b2f21fd3

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 18:55:48 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