Fix multiple missing UTF-8 decoding.
This commit is contained in:
parent
1f0dc02649
commit
c69e0d16bc
13 changed files with 22 additions and 22 deletions
|
|
@ -189,7 +189,7 @@ bool ZipArchive::try_open_pack(const String &p_path, bool p_replace_files, uint6
|
|||
f.package = pkg_num;
|
||||
unzGetFilePos(zfile, &f.file_pos);
|
||||
|
||||
String fname = String("res://") + filename_inzip;
|
||||
String fname = String("res://") + String::utf8(filename_inzip);
|
||||
files[fname] = f;
|
||||
|
||||
uint8_t md5[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||
|
|
|
|||
|
|
@ -520,8 +520,8 @@ void ResourceCache::dump(const char *p_file, bool p_short) {
|
|||
|
||||
FileAccess *f = nullptr;
|
||||
if (p_file) {
|
||||
f = FileAccess::open(p_file, FileAccess::WRITE);
|
||||
ERR_FAIL_COND_MSG(!f, "Cannot create file at path '" + String(p_file) + "'.");
|
||||
f = FileAccess::open(String::utf8(p_file), FileAccess::WRITE);
|
||||
ERR_FAIL_COND_MSG(!f, "Cannot create file at path '" + String::utf8(p_file) + "'.");
|
||||
}
|
||||
|
||||
const String *K = nullptr;
|
||||
|
|
|
|||
|
|
@ -346,7 +346,7 @@ String OS::get_model_name() const {
|
|||
}
|
||||
|
||||
void OS::set_cmdline(const char *p_execpath, const List<String> &p_args) {
|
||||
_execpath = p_execpath;
|
||||
_execpath = String::utf8(p_execpath);
|
||||
_cmdline = p_args;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue