You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
This commit is contained in:
@@ -43,7 +43,7 @@ String get_godot_android_mono_config() {
|
||||
Compression::decompress(w, config_uncompressed_size, config_compressed_data,
|
||||
config_compressed_size, Compression::MODE_DEFLATE);
|
||||
String s;
|
||||
if (s.parse_utf8((const char *)w, data.size())) {
|
||||
if (s.parse_utf8((const char *)w, data.size()) != OK) {
|
||||
ERR_FAIL_V(String());
|
||||
}
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user