This commit is contained in:
2025-06-03 10:28:18 +08:00
parent 9b4f6e4e6e
commit 06f319418b

View File

@@ -39,7 +39,7 @@ fn get_archived_encoding(
builder: &Box<dyn scripts::ScriptBuilder + Send + Sync>,
encoding: types::Encoding,
) -> types::Encoding {
match &arg.encoding {
match &arg.archive_encoding {
Some(enc) => {
return match enc {
&types::TextEncoding::Default => builder.default_encoding(),
@@ -52,7 +52,7 @@ fn get_archived_encoding(
None => {}
}
#[cfg(windows)]
match &arg.code_page {
match &arg.archive_code_page {
Some(code_page) => {
return types::Encoding::CodePage(*code_page);
}