diff options
| author | Juan Linietsky | 2014-02-15 02:01:39 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-02-15 02:02:41 -0300 |
| commit | 9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852 (patch) | |
| tree | d25ef63dfe50d59987b4a611c1d1773185a3e35d /drivers/unix/os_unix.cpp | |
| parent | b0870e487c6cc68bb0a2cef7174f3f5697667a2e (diff) | |
| download | godot-9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852.tar.gz godot-9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852.tar.zst godot-9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index f684c63b3..399d0247f 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -394,7 +394,8 @@ String OS_Unix::get_executable_path() const { memset(buf,0,256); readlink("/proc/self/exe", buf, sizeof(buf)); //print_line("Exec path is:"+String(buf)); - String b = buf; + String b; + b.parse_utf8(buf); if (b=="") { WARN_PRINT("Couldn't get executable path from /proc/self/exe, using argv[0]"); return OS::get_executable_path(); |
