summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/extensions/output.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/extensions/output.py b/lib/extensions/output.py
index 1dc8d19d..e72eac7b 100644
--- a/lib/extensions/output.py
+++ b/lib/extensions/output.py
@@ -36,6 +36,10 @@ class Output(InkstitchExtension):
write_embroidery_file(temp_file.name, stitch_plan, self.document.getroot())
+ if sys.platform == "win32":
+ import msvcrt
+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
+
# inkscape will read the file contents from stdout and copy
# to the destination file that the user chose
with open(temp_file.name) as output_file: