Bugfix: failure in launching on Windows with non-ASCII characters in username. #1011

This commit is contained in:
Alessandro Ranellucci 2013-02-22 18:40:00 +01:00
parent 28638019ae
commit 72df796185
2 changed files with 10 additions and 4 deletions

View file

@ -88,9 +88,14 @@ sub parallelize {
}
}
sub encode_path {
my ($filename) = @_;
return encode('locale_fs', $filename);
}
sub open {
my ($fh, $mode, $filename) = @_;
return CORE::open $$fh, $mode, encode('locale_fs', $filename);
return CORE::open $$fh, $mode, encode_path($filename);
}
1;