summaryrefslogtreecommitdiffstats
path: root/platform/osx/export/export_plugin.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-05 14:27:11 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-05 14:31:20 +0200
commitd2573c1636303f490df641f8a1cdaa3c46616054 (patch)
treed5d93f997e595be0531537f049ccc396d279a08c /platform/osx/export/export_plugin.cpp
parentd2ac67d55e693e26b1927ca25b9b1037acb1a256 (diff)
downloadredot-engine-d2573c1636303f490df641f8a1cdaa3c46616054.tar.gz
Fix decoding UTF-8 filenames on unzipping.
Diffstat (limited to 'platform/osx/export/export_plugin.cpp')
-rw-r--r--platform/osx/export/export_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/export/export_plugin.cpp b/platform/osx/export/export_plugin.cpp
index 786a8f38d8..278c401e7f 100644
--- a/platform/osx/export/export_plugin.cpp
+++ b/platform/osx/export/export_plugin.cpp
@@ -571,7 +571,7 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
char fname[16384];
ret = unzGetCurrentFileInfo(src_pkg_zip, &info, fname, 16384, nullptr, 0, nullptr, 0);
- String file = fname;
+ String file = String::utf8(fname);
Vector<uint8_t> data;
data.resize(info.uncompressed_size);