mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 21:14:01 -06:00
Fixes to UTF-8 handling in file paths
This commit is contained in:
parent
049859e5b1
commit
989ec5cf4d
5 changed files with 20 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue