More logging of text encoding detection

pull/856/head
Wilfred Hughes 2025-07-02 19:00:16 +07:00
parent a104d0ae90
commit 6aa5eb2d24
1 changed files with 1 additions and 0 deletions

@ -141,6 +141,7 @@ pub(crate) enum ProbableFileKind {
pub(crate) fn guess_content(bytes: &[u8]) -> ProbableFileKind {
// If the bytes are entirely valid UTF-8, treat them as a string.
if let Ok(valid_utf8_string) = std::str::from_utf8(bytes) {
info!("Input file is valid UTF-8");
return ProbableFileKind::Text(valid_utf8_string.to_owned());
}