mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 20:46:01 +08:00
Fixed regression introduced with recent fixes to UTF-8 preset names handling on Windows that prevented their load on OS X (TODO: test on Linux)
This commit is contained in:
parent
0d08c1819b
commit
2f4fa41ce4
@ -268,7 +268,11 @@ sub encode_path {
|
|||||||
sub decode_path {
|
sub decode_path {
|
||||||
my ($path) = @_;
|
my ($path) = @_;
|
||||||
|
|
||||||
utf8::upgrade($path) if $^O eq 'MSWin32';
|
if ($^O eq 'MSWin32') {
|
||||||
|
utf8::upgrade($path);
|
||||||
|
} else {
|
||||||
|
utf8::decode($path);
|
||||||
|
}
|
||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user