You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Fix incorrect encoding (Latin-1 instead of UTF-8) used in _error_handler functions.
This commit is contained in:
@@ -45,9 +45,9 @@ void EditorLog::_error_handler(void *p_self, const char *p_func, const char *p_f
|
||||
|
||||
String err_str;
|
||||
if (p_errorexp && p_errorexp[0]) {
|
||||
err_str = p_errorexp;
|
||||
err_str = String::utf8(p_errorexp);
|
||||
} else {
|
||||
err_str = String(p_file) + ":" + itos(p_line) + " - " + String(p_error);
|
||||
err_str = String::utf8(p_file) + ":" + itos(p_line) + " - " + String::utf8(p_error);
|
||||
}
|
||||
|
||||
if (p_editor_notify) {
|
||||
|
||||
Reference in New Issue
Block a user