Fix incorrect encoding (Latin-1 instead of UTF-8) used in _error_handler functions.

This commit is contained in:
bruvzg 2021-11-08 23:42:32 +02:00
parent 38c698c485
commit ba9d737363
4 changed files with 9 additions and 9 deletions

View file

@ -475,7 +475,7 @@ void RemoteDebugger::_err_handler(void *p_this, const char *p_func, const char *
}
// send_error will lock internally.
rd->script_debugger->send_error(p_func, p_file, p_line, p_err, p_descr, p_editor_notify, p_type, si);
rd->script_debugger->send_error(String::utf8(p_func), String::utf8(p_file), p_line, String::utf8(p_err), String::utf8(p_descr), p_editor_notify, p_type, si);
}
void RemoteDebugger::_print_handler(void *p_this, const String &p_string, bool p_error) {