mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +08:00
Fix bug
This commit is contained in:
@@ -39,7 +39,7 @@ fn get_archived_encoding(
|
|||||||
builder: &Box<dyn scripts::ScriptBuilder + Send + Sync>,
|
builder: &Box<dyn scripts::ScriptBuilder + Send + Sync>,
|
||||||
encoding: types::Encoding,
|
encoding: types::Encoding,
|
||||||
) -> types::Encoding {
|
) -> types::Encoding {
|
||||||
match &arg.encoding {
|
match &arg.archive_encoding {
|
||||||
Some(enc) => {
|
Some(enc) => {
|
||||||
return match enc {
|
return match enc {
|
||||||
&types::TextEncoding::Default => builder.default_encoding(),
|
&types::TextEncoding::Default => builder.default_encoding(),
|
||||||
@@ -52,7 +52,7 @@ fn get_archived_encoding(
|
|||||||
None => {}
|
None => {}
|
||||||
}
|
}
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
match &arg.code_page {
|
match &arg.archive_code_page {
|
||||||
Some(code_page) => {
|
Some(code_page) => {
|
||||||
return types::Encoding::CodePage(*code_page);
|
return types::Encoding::CodePage(*code_page);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user