Fix for the GreaseMonkey code.

Sun, 22 Jul 2012 18:26:57 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 22 Jul 2012 18:26:57 +0200
changeset 1954
5072605ad4dd
parent 1953
26aa6fd94dc2
child 1956
ce5cd9fee192

Fix for the GreaseMonkey code.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Helpviewer/GreaseMonkey/GreaseMonkeyDownloader.py file | annotate | diff | comparison | revisions
Helpviewer/GreaseMonkey/GreaseMonkeyManager.py file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/Helpviewer/GreaseMonkey/GreaseMonkeyDownloader.py	Sun Jul 22 15:32:52 2012 +0200
+++ b/Helpviewer/GreaseMonkey/GreaseMonkeyDownloader.py	Sun Jul 22 18:26:57 2012 +0200
@@ -64,7 +64,7 @@
             self.__fileName = HelpUtilities.ensureUniqueFilename(filePath)
             
             try:
-                f = open(self.__fileName, "w")
+                f = open(self.__fileName, "w", encoding="utf-8")
             except (IOError, OSError) as err:
                 E5MessageBox.critical(None,
                     self.trUtf8("GreaseMonkey Download"),
@@ -111,7 +111,7 @@
             fileName = HelpUtilities.ensureUniqueFilename(filePath, "{0}")
             
             try:
-                f = open(fileName, "w")
+                f = open(fileName, "w", encoding="utf-8")
             except (IOError, OSError) as err:
                 E5MessageBox.critical(None,
                     self.trUtf8("GreaseMonkey Download"),
--- a/Helpviewer/GreaseMonkey/GreaseMonkeyManager.py	Sun Jul 22 15:32:52 2012 +0200
+++ b/Helpviewer/GreaseMonkey/GreaseMonkeyManager.py	Sun Jul 22 18:26:57 2012 +0200
@@ -112,7 +112,7 @@
             if settings.contains(url):
                 fileName = settings.value(url)
                 try:
-                    f = open(fileName, "r")
+                    f = open(fileName, "r", encoding="utf-8")
                     source = f.read()
                     f.close()
                 except (IOError, OSError):

eric ide

mercurial