PluginManager/PluginInstallDialog.py

changeset 45
9a18f4dbb493
parent 13
1af94a91f439
child 48
f4274afeba82
--- a/PluginManager/PluginInstallDialog.py	Sun Jan 10 13:59:15 2010 +0000
+++ b/PluginManager/PluginInstallDialog.py	Sun Jan 10 19:19:52 2010 +0000
@@ -287,7 +287,7 @@
                 False
         
         # parse the plugin module's plugin header
-        pluginSource = zip.read(pluginFileName)
+        pluginSource = zip.read(pluginFileName).decode("utf-8")
         packageName = ""
         internalPackages = []
         needsRestart = False
@@ -397,7 +397,7 @@
                             d = os.path.dirname(outname)
                             if not os.path.exists(d):
                                 self.__makedirs(d)
-                            f = open(outname, "w")
+                            f = open(outname, "wb")
                             f.write(zip.read(name))
                             f.close()
                             self.__installedFiles.append(outname)
@@ -406,7 +406,7 @@
                 compileUiFiles(os.path.join(destination, packageName), True)
             else:
                 outname = os.path.join(destination, pluginFileName)
-                f = open(outname, "w")
+                f = open(outname, "w", encoding = "utf-8")
                 f.write(pluginSource)
                 f.close()
                 self.__installedFiles.append(outname)

eric ide

mercurial