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
1 changed files with 5 additions and 1 deletions
|
@ -268,7 +268,11 @@ sub encode_path {
|
|||
sub decode_path {
|
||||
my ($path) = @_;
|
||||
|
||||
utf8::upgrade($path) if $^O eq 'MSWin32';
|
||||
if ($^O eq 'MSWin32') {
|
||||
utf8::upgrade($path);
|
||||
} else {
|
||||
utf8::decode($path);
|
||||
}
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue