mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-04 02:34:10 +02:00
lossy utf8
This commit is contained in:
parent
c73828a2db
commit
b95c58a257
2 changed files with 4 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ use tf_log_parser::parse;
|
|||
|
||||
fn main() -> Result<(), MainError> {
|
||||
let path = args().nth(1).expect("No path provided");
|
||||
let content = fs::read_to_string(path)?;
|
||||
let content = fs::read(path)?;
|
||||
let content = String::from_utf8_lossy(&content);
|
||||
|
||||
let log = parse(&content)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue