mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 20:29:04 +08:00
Error in previous commit: Bugfix: prevent crash when user entered Unicode characters in notes. #1590
This commit is contained in:
parent
bf1fd0cf9a
commit
2a52a318fe
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user