diff --git a/tests/fixtures/chinese-name.zip b/tests/fixtures/chinese-name.zip new file mode 100644 index 0000000..ebcb32b Binary files /dev/null and b/tests/fixtures/chinese-name.zip differ diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 431e26b..4da4026 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -702,3 +702,11 @@ fn decode_failure() { panic!("Did not find expected error"); } + +#[test] +fn decode_chinese_zip() { + let source = std::fs::File::open("tests/fixtures/chinese-name.zip").unwrap(); + let files = list_archive_files(source).expect("Failed to list archives"); + let expected = ["中文/", "中文/文件/"]; + assert_eq!(files, expected); +}