From c5460be175a12c57cf93e0dc22a710b27215ca14 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Sun, 13 Mar 2011 16:35:49 +0100 Subject: [PATCH] Force UTF-8 output even if the locale is not set to UTF-8. At worst it will output garbage, which is better than crashing in this case. --- iotop/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotop/ui.py b/iotop/ui.py index 2c62c75..979654b 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -420,7 +420,7 @@ class IOTopUI(object): if self.options.quiet <= int(first_time): print ''.join(titles) for l in lines: - print l + print l.encode('utf-8') sys.stdout.flush() else: self.win.erase() -- 2.11.4.GIT