From 6aa5eb2d24a5cb1812df99a28d291df6de35a495 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Wed, 2 Jul 2025 19:00:16 +0100 Subject: [PATCH] More logging of text encoding detection --- src/files.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/files.rs b/src/files.rs index 3ebf6810a..1fd1105be 100644 --- a/src/files.rs +++ b/src/files.rs @@ -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()); }