mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-30 08:32:42 +00:00
Fixes to UTF-8 handling in file paths
This commit is contained in:
@@ -234,6 +234,11 @@ sub encode_path {
|
||||
return encode('locale_fs', $filename);
|
||||
}
|
||||
|
||||
sub decode_path {
|
||||
my ($filename) = @_;
|
||||
return decode('locale_fs', $filename);
|
||||
}
|
||||
|
||||
sub open {
|
||||
my ($fh, $mode, $filename) = @_;
|
||||
return CORE::open $$fh, $mode, encode_path($filename);
|
||||
|
||||
Reference in New Issue
Block a user