From 8a628c451c76d518e2f503fa57eb553f7893344b Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 4 May 2017 09:24:34 +0200 Subject: [PATCH] Fixed a newly introduced G-code issue on Windows when exporting into a localized directory. --- lib/Slic3r/Print.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 3245972d3..c1dd69399 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -78,7 +78,7 @@ sub export_gcode { # open output gcode file if we weren't supplied a file-handle my $tempfile = "$output_file.tmp"; my $gcode = Slic3r::GCode->new(); - my $result = $gcode->do_export($self, $tempfile); + my $result = $gcode->do_export($self, Slic3r::encode_path($tempfile)); die $result . "\n" if ($result ne ''); my $i; for ($i = 0; $i < 5; $i += 1) {