1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-31 11:15:52 +00:00

Error in previous commit: Bugfix: prevent crash when user entered Unicode characters in notes. #1590

This commit is contained in:
Alessandro Ranellucci
2014-03-24 17:02:25 +01:00
parent bf1fd0cf9a
commit 2a52a318fe
+3 -3
View File
@@ -702,10 +702,10 @@ sub write_gcode {
} else { } else {
Slic3r::open(\$fh, ">", $file) Slic3r::open(\$fh, ">", $file)
or die "Failed to open $file for writing\n"; or die "Failed to open $file for writing\n";
}
# enable UTF-8 output since user might have entered Unicode characters in fields like notes # enable UTF-8 output since user might have entered Unicode characters in fields like notes
binmode $fh, ':utf8'; binmode $fh, ':utf8';
}
# write some information # write some information
my @lt = localtime; my @lt = localtime;