瀏覽代碼

os: execute parse the command output from utf8

Mateo Dev .59 5 年之前
父節點
當前提交
8a88637705
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/unix/os_unix.cpp
  2. 1 1
      platform/windows/os_windows.cpp

+ 1 - 1
drivers/unix/os_unix.cpp

@@ -307,7 +307,7 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo
 			if (p_pipe_mutex) {
 				p_pipe_mutex->lock();
 			}
-			(*r_pipe) += buf;
+			(*r_pipe) += String::utf8(buf);
 			if (p_pipe_mutex) {
 				p_pipe_mutex->unlock();
 			}

+ 1 - 1
platform/windows/os_windows.cpp

@@ -2724,7 +2724,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
 			if (p_pipe_mutex) {
 				p_pipe_mutex->lock();
 			}
-			(*r_pipe) += buf;
+			(*r_pipe) += String::utf8(buf);
 			if (p_pipe_mutex) {
 				p_pipe_mutex->unlock();
 			}