Fix multiple missing UTF-8 decoding.

This commit is contained in:
bruvzg 2022-01-06 11:34:10 +02:00
parent 1f0dc02649
commit c69e0d16bc
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
13 changed files with 22 additions and 22 deletions

View file

@ -431,7 +431,7 @@ Error OS_LinuxBSD::move_to_trash(const String &p_path) {
if (trash_path.is_empty()) {
char *dhome = getenv("XDG_DATA_HOME");
if (dhome) {
trash_path = String(dhome) + "/Trash";
trash_path = String::utf8(dhome) + "/Trash";
}
}
@ -439,7 +439,7 @@ Error OS_LinuxBSD::move_to_trash(const String &p_path) {
if (trash_path.is_empty()) {
char *home = getenv("HOME");
if (home) {
trash_path = String(home) + "/.local/share/Trash";
trash_path = String::utf8(home) + "/.local/share/Trash";
}
}