diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2016-10-24 15:30:22 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2016-10-24 15:30:22 +0300 |
commit | 448d7d890cc16e9ee98ce70e1690759772f0df35 (patch) | |
tree | 2881be1894c45eecc0d29cd15d171ee857655997 /plugins/RemovableDriveOutputDevice | |
parent | 3d63df74714e76dc1a16dbf7b490ef66b7f200d8 (diff) | |
parent | bfec96f58425517cb89fa91d4c41a085fa515c70 (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.py | 2 |
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) |