Skip to content

Commit

Permalink
fix(extract): fix unicode entry extract on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
muja committed Sep 7, 2024
1 parent 9b6703b commit 7c4d10f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/open_archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,13 @@ impl OpenArchive<Process, CursorBeforeFile> {
self,
base: P,
) -> UnrarResult<OpenArchive<Process, CursorBeforeHeader>> {
let file = None;
let path = pathed::construct(&base);
self.process_file::<Extract>(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::<Extract>(Some(&path), file)
}

/// Extracts the file into the specified file.
Expand Down

0 comments on commit 7c4d10f

Please sign in to comment.