From 7d2884bc0c3a492e2164f6d1950c1391ab872bcd Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Tue, 14 Feb 2017 17:30:41 +0000 Subject: [PATCH] Fixed a bug in renaming a G-code at the end of a G-code export (#3708) from .tmp suffix to a non .tmp file on localized Windows, thanks @bubnikv --- 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 6be0b058b..30805c344 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -101,7 +101,7 @@ sub export_gcode { # close our gcode file close $fh; - rename $tempfile, $output_file if $tempfile; + rename Slic3r::encode_path($tempfile), Slic3r::encode_path($output_file) if $tempfile; } # run post-processing scripts