Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjen Hiemstra <ahiemstra@heimr.nl>2016-10-24 15:30:22 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2016-10-24 15:30:22 +0300
commit448d7d890cc16e9ee98ce70e1690759772f0df35 (patch)
tree2881be1894c45eecc0d29cd15d171ee857655997 /plugins/RemovableDriveOutputDevice
parent3d63df74714e76dc1a16dbf7b490ef66b7f200d8 (diff)
parentbfec96f58425517cb89fa91d4c41a085fa515c70 (diff)
Merge branch '2.3'
* 2.3: Set encoding to utf-8 when writing files Remove manually specified utf-8 encoding SettingInstanceManager now also watches containerchanged of extruder stacks
Diffstat (limited to 'plugins/RemovableDriveOutputDevice')
-rw-r--r--plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py b/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py
index 8de1720107..61f3bdb3be 100644
--- a/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py
+++ b/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py
@@ -71,7 +71,7 @@ class RemovableDriveOutputDevice(OutputDevice):
try:
Logger.log("d", "Writing to %s", file_name)
# Using buffering greatly reduces the write time for many lines of gcode
- self._stream = open(file_name, "wt", buffering = 1)
+ self._stream = open(file_name, "wt", buffering = 1, encoding = "utf-8")
job = WriteMeshJob(writer, self._stream, nodes, MeshWriter.OutputMode.TextMode)
job.setFileName(file_name)
job.progress.connect(self._onProgress)