[gedit-plugins] [commander] Fix writing string without encoding



commit f3d4e2ae46bbfa163505783e0181ef174dfc5dd0
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Jul 13 13:15:55 2014 +0200

    [commander] Fix writing string without encoding

 plugins/commander/modules/shell.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/commander/modules/shell.py b/plugins/commander/modules/shell.py
index 5baae50..7060b70 100644
--- a/plugins/commander/modules/shell.py
+++ b/plugins/commander/modules/shell.py
@@ -139,7 +139,7 @@ def _run_command(entry, replace, background, argstr):
 
         # Write to temporary file
         tmpin = tempfile.NamedTemporaryFile(delete=False)
-        tmpin.write(inp)
+        tmpin.write(inp.encode('utf-8'))
         tmpin.flush()
 
         # Replace with temporary file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]