mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Error in previous commit: Bugfix: prevent crash when user entered Unicode characters in notes. #1590
This commit is contained in:
@@ -793,10 +793,11 @@ 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
|
||||||
|
binmode $fh, ':utf8';
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user