mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 00:05:53 +08:00
Bugfix: prevent crash when user entered Unicode characters in notes. #1590
This commit is contained in:
parent
96ad37f6e0
commit
bf1fd0cf9a
@ -704,6 +704,9 @@ sub write_gcode {
|
|||||||
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
|
||||||
|
binmode $fh, ':utf8';
|
||||||
|
|
||||||
# write some information
|
# write some information
|
||||||
my @lt = localtime;
|
my @lt = localtime;
|
||||||
printf $fh "; generated by Slic3r $Slic3r::VERSION on %04d-%02d-%02d at %02d:%02d:%02d\n\n",
|
printf $fh "; generated by Slic3r $Slic3r::VERSION on %04d-%02d-%02d at %02d:%02d:%02d\n\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user