Add a warning counter

This commit is contained in:
2025-05-22 09:06:55 +08:00
parent 795832fd3c
commit f64a702ef5
5 changed files with 22 additions and 8 deletions

View File

@@ -123,6 +123,7 @@ pub fn encode_string(cp: u32, data: &str, check: bool) -> Result<Vec<u8>, WinErr
"Warning: Some characters could not be encoded in code page {}: {}",
cp, data
);
crate::COUNTER.inc_warning();
}
}
if result == 0 {