diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-01-06 14:46:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 14:46:48 +0100 |
commit | 84d82030c35017c7470d3373257437ee022024ae (patch) | |
tree | 015cc8a3b1c889245462f54879a74d469d777928 /platform/linuxbsd/os_linuxbsd.cpp | |
parent | 985ae61ddaa33f45a0dcc70bd1e9de7150e2216e (diff) | |
parent | c69e0d16bc8adbe3d984f4f9953412986ed02791 (diff) | |
download | redot-engine-84d82030c35017c7470d3373257437ee022024ae.tar.gz |
Merge pull request #56549 from bruvzg/utf8_fixes
Diffstat (limited to 'platform/linuxbsd/os_linuxbsd.cpp')
-rw-r--r-- | platform/linuxbsd/os_linuxbsd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp index fe891e1c6a..b5f127bb16 100644 --- a/platform/linuxbsd/os_linuxbsd.cpp +++ b/platform/linuxbsd/os_linuxbsd.cpp @@ -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"; } } |