From 2f4fa41ce498cf04a2a62c3c14b86ef658d1d646 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 28 May 2015 18:44:19 +0200 Subject: [PATCH] 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) --- lib/Slic3r.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index c3c21e782..9fc1df029 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -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; }