Skip to content

Commit cb4034a

Browse files
fix: Make sure a proper file names encoding is used while unzipping files from app bundles (#2534)
1 parent 2a2697c commit cb4034a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/app-utils.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ export async function unzipFile(archivePath) {
265265
_.isEmpty(useSystemUnzipEnv) || !['0', 'false'].includes(_.toLower(useSystemUnzipEnv));
266266
const tmpRoot = await tempDir.openDir();
267267
try {
268-
await zip.extractAllTo(archivePath, tmpRoot, {useSystemUnzip});
268+
await zip.extractAllTo(archivePath, tmpRoot, {
269+
useSystemUnzip,
270+
// https://github.com/appium/appium/issues/14100
271+
fileNamesEncoding: 'utf8',
272+
});
269273
} catch (e) {
270274
await fs.rimraf(tmpRoot);
271275
throw e;

0 commit comments

Comments
 (0)