##// END OF EJS Templates
Add encoding to output data, just to be safe, as per Thomas' suggestion.
Fernando Perez -
Show More
@@ -246,7 +246,7 b' which already exists. But you must first start the logging process with'
246 elif kind=='output' and self.log_output:
246 elif kind=='output' and self.log_output:
247 odata = '\n'.join(['#[Out]# %s' % s
247 odata = '\n'.join(['#[Out]# %s' % s
248 for s in data.split('\n')])
248 for s in data.split('\n')])
249 write('%s\n' % odata)
249 write('%s\n' % odata.encode(sys.stdin.encoding))
250 self.logfile.flush()
250 self.logfile.flush()
251
251
252 def logstop(self):
252 def logstop(self):
General Comments 0
You need to be logged in to leave comments. Login now