From 56323ac333829faab66b08a030437ac356ee1310 Mon Sep 17 00:00:00 2001 From: micheal Date: Tue, 6 Sep 2022 21:40:48 +0530 Subject: [PATCH] fix(console): fix ascii-only flipped input `--ascii-only true` shows ascii `--ascii-only false` shows emojis default value: true shows emojis Fixes: #372 --- tokio-console/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-console/src/config.rs b/tokio-console/src/config.rs index 04f14b917..52f0b4448 100644 --- a/tokio-console/src/config.rs +++ b/tokio-console/src/config.rs @@ -411,7 +411,7 @@ fn default_log_directory() -> PathBuf { impl ViewOptions { pub fn is_utf8(&self) -> bool { - if !self.ascii_only.unwrap_or(true) { + if self.ascii_only.unwrap_or(false) { return false; } self.lang.as_deref().unwrap_or_default().ends_with("UTF-8")