You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
os: execute parse the command output from utf8
(cherry picked from commit 8a88637705)
This commit is contained in:
committed by
Rémi Verschelde
parent
7de67f6c48
commit
d6c94fd527
@@ -310,7 +310,7 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo
|
|||||||
if (p_pipe_mutex) {
|
if (p_pipe_mutex) {
|
||||||
p_pipe_mutex->lock();
|
p_pipe_mutex->lock();
|
||||||
}
|
}
|
||||||
(*r_pipe) += buf;
|
(*r_pipe) += String::utf8(buf);
|
||||||
if (p_pipe_mutex) {
|
if (p_pipe_mutex) {
|
||||||
p_pipe_mutex->unlock();
|
p_pipe_mutex->unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2713,7 +2713,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
|
|||||||
if (p_pipe_mutex) {
|
if (p_pipe_mutex) {
|
||||||
p_pipe_mutex->lock();
|
p_pipe_mutex->lock();
|
||||||
}
|
}
|
||||||
(*r_pipe) += buf;
|
(*r_pipe) += String::utf8(buf);
|
||||||
if (p_pipe_mutex) {
|
if (p_pipe_mutex) {
|
||||||
p_pipe_mutex->unlock();
|
p_pipe_mutex->unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user