[gedit-latex] Convert script name from utf-8 (it is reconverted when written to xml): fixes point 2 of bug #676812



commit e5ed0756b8d5b9b0c53581983db51f6e0294aa4b
Author: Pietro Battiston <me pietrobattiston it>
Date:   Mon May 28 17:55:48 2012 +0200

    Convert script name from utf-8 (it is reconverted when written to xml): fixes point 2 of bug #676812

 latex/preferences/tools.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/latex/preferences/tools.py b/latex/preferences/tools.py
index 25bc597..558ccd3 100644
--- a/latex/preferences/tools.py
+++ b/latex/preferences/tools.py
@@ -133,8 +133,8 @@ class ToolPreferences(GObject.GObject):
 
             tool_element = ElementTree.SubElement(self.__tools, "tool")
             tool_element.set("id", id)
-
-        tool_element.set("label", tool.label)
+        
+        tool_element.set("label", tool.label.decode('utf-8'))
         tool_element.set("description", tool.description)
         tool_element.set("extensions", " ".join(tool.extensions))
         if tool.accelerator is None:



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