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:
Alessandro Ranellucci 2015-05-28 18:44:19 +02:00
parent 0d08c1819b
commit 2f4fa41ce4

View file

@ -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;
}