about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gifprobe/src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/gifprobe/src/main.rs b/gifprobe/src/main.rs
index 128aae1..f73384d 100644
--- a/gifprobe/src/main.rs
+++ b/gifprobe/src/main.rs
@@ -66,7 +66,12 @@ fn main() {
 			}
 			Block::LoopingExtension(_) => todo!(),
 			Block::CommentExtension(cmt) => {
-				println!("Comment Extension\n\tLength {}", cmt.len())
+				println!("Comment Extension\n\tLength {}", cmt.len().yellow());
+
+				match String::from_utf8(cmt) {
+					Ok(cmt) => println!("\tString \"{}\"", cmt.yellow()),
+					Err(_) => println!("\tString {}", "Content is not utf8".red()),
+				}
 			}
 			Block::ApplicationExtension(app) => {
 				let auth = app.authentication_code();