From 7c4d10f2b265521116ba55ff00cf49d0d558187a Mon Sep 17 00:00:00 2001 From: Danyel Date: Sat, 7 Sep 2024 22:56:04 +0200 Subject: [PATCH] fix(extract): fix unicode entry extract on Linux --- src/open_archive.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/open_archive.rs b/src/open_archive.rs index fd8f809..11e9a81 100644 --- a/src/open_archive.rs +++ b/src/open_archive.rs @@ -406,8 +406,13 @@ impl OpenArchive { self, base: P, ) -> UnrarResult> { + let file = None; let path = pathed::construct(&base); - self.process_file::(Some(&path), None) + #[cfg(target_os = "linux")] + let file = pathed::construct(base.as_ref().join(&self.entry().filename)); + #[cfg(target_os = "linux")] + let file = Some(&file); + self.process_file::(Some(&path), file) } /// Extracts the file into the specified file.