Commit d704be9b authored by Paolo Borelli's avatar Paolo Borelli

I utf8

parent 68c62dfd
2006-02-13 Steve Frécinaux <>
* plugins/externaltools/tools/ convert to unicode the
what we get from the pipe.
2006-02-13 Paolo Borelli <>
* gedit/gedit-ui.xml: add placeholders in the File menu in case
......@@ -99,14 +99,23 @@ class Capture(gobject.GObject):
def on_output(self, source, condition):
line = source.readline()
if len(line) > 0:
line = unicode(line, 'utf-8')
line = unicode(line,
if source == self.pipe.stdout:
self.emit('stdout-line', line)
self.emit('stderr-line', line)
return True
return False
def stop(self, error_code = -1):
if self.pipe is not None:
os.kill(, signal.SIGTERM)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment