mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add encoding='utf-8' for text file reading
CURA-4875 When encoding is not provided, the behaviour is system dependent and it can break on OS X.
This commit is contained in:
parent
63ac8412e6
commit
7dfc1a4aa7
8 changed files with 11 additions and 11 deletions
|
@ -39,7 +39,7 @@ class CuraProfileReader(ProfileReader):
|
|||
|
||||
except zipfile.BadZipFile:
|
||||
# It must be an older profile from Cura 2.1.
|
||||
with open(file_name, encoding="utf-8") as fhandle:
|
||||
with open(file_name, encoding = "utf-8") as fhandle:
|
||||
serialized = fhandle.read()
|
||||
return [self._loadProfile(serialized, profile_id) for serialized, profile_id in self._upgradeProfile(serialized, file_name)]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue