Force changelog to load with utf-8

Fixes ultimaker/cura#335
This commit is contained in:
Jaime van Kessel 2015-09-07 13:51:16 +02:00
parent 50f557f5a8
commit 9cf383aa7c
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ class ChangeLog(Extension, QObject,):
def loadChangeLogs(self): def loadChangeLogs(self):
self._change_logs = {} self._change_logs = {}
with open(os.path.join(PluginRegistry.getInstance().getPluginPath("ChangeLogPlugin"), "ChangeLog.txt"), 'r') as f: with open(os.path.join(PluginRegistry.getInstance().getPluginPath("ChangeLogPlugin"), "ChangeLog.txt"), 'r',-1, "utf-8") as f:
open_version = None open_version = None
open_header = None open_header = None
for line in f: for line in f:

View file

@ -38,4 +38,4 @@ You can now group objects together to make it easier to manipulate multiple obje
You can now select different profiles for different objects and in advance mode override individual settings. You can now select different profiles for different objects and in advance mode override individual settings.
*64-bit Windows Builds (New) *64-bit Windows Builds (New)
Cura now allows 64-bit Windows builds in addition to the 32-bit builds. For users running the 64-bit version of Windows, you can now load models in more detail. Cura now allows 64-bit Windows builds in addition to the 32-bit builds. For users running the 64-bit version of Windows, you can now load models in more detail.