Browse Source

Merge pull request #98843 from kilian-diener/zip-path-utf8

[3.x] Fix error when non-ASCII characters in resource pack path
lawnjelly 10 months ago
parent
commit
c50cae23f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/io/file_access_zip.cpp

+ 1 - 1
core/io/file_access_zip.cpp

@@ -43,7 +43,7 @@ static void *godot_open(void *data, const char *p_fname, int mode) {
 		return nullptr;
 	}
 
-	FileAccess *f = FileAccess::open(p_fname, FileAccess::READ);
+	FileAccess *f = FileAccess::open(String::utf8(p_fname), FileAccess::READ);
 	ERR_FAIL_COND_V(!f, nullptr);
 
 	return f;