Remove warning

This commit is contained in:
Alessandro Ranellucci 2017-05-16 22:31:04 +02:00
parent 9b77554975
commit a7ffe54fb6

View File

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