mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 04:31:59 +08:00
Remove warning
This commit is contained in:
parent
9b77554975
commit
a7ffe54fb6
@ -300,6 +300,8 @@ sub resume_all_threads {
|
||||
sub encode_path {
|
||||
my ($path) = @_;
|
||||
|
||||
return undef if !defined $path;
|
||||
|
||||
$path = Unicode::Normalize::NFC($path);
|
||||
$path = Encode::encode(locale_fs => $path);
|
||||
|
||||
@ -310,6 +312,8 @@ sub encode_path {
|
||||
sub decode_path {
|
||||
my ($path) = @_;
|
||||
|
||||
return undef if !defined $path;
|
||||
|
||||
$path = Encode::decode(locale_fs => $path)
|
||||
unless utf8::is_utf8($path);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user