mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Error in previous commit: Bugfix: prevent crash when user entered Unicode characters in notes. #1590
This commit is contained in:
@@ -702,11 +702,11 @@ sub write_gcode {
|
||||
} else {
|
||||
Slic3r::open(\$fh, ">", $file)
|
||||
or die "Failed to open $file for writing\n";
|
||||
|
||||
# enable UTF-8 output since user might have entered Unicode characters in fields like notes
|
||||
binmode $fh, ':utf8';
|
||||
}
|
||||
|
||||
# enable UTF-8 output since user might have entered Unicode characters in fields like notes
|
||||
binmode $fh, ':utf8';
|
||||
|
||||
# write some information
|
||||
my @lt = localtime;
|
||||
printf $fh "; generated by Slic3r $Slic3r::VERSION on %04d-%02d-%02d at %02d:%02d:%02d\n\n",
|
||||
|
||||
Reference in New Issue
Block a user