summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/os_linuxbsd.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-01-06 14:46:48 +0100
committerGitHub <noreply@github.com>2022-01-06 14:46:48 +0100
commit84d82030c35017c7470d3373257437ee022024ae (patch)
tree015cc8a3b1c889245462f54879a74d469d777928 /platform/linuxbsd/os_linuxbsd.cpp
parent985ae61ddaa33f45a0dcc70bd1e9de7150e2216e (diff)
parentc69e0d16bc8adbe3d984f4f9953412986ed02791 (diff)
downloadredot-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.cpp4
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";
}
}