From 652ac3442325aafc8d57e7f1949db51bde010004 Mon Sep 17 00:00:00 2001 From: Micheal <38526063+michealkeines@users.noreply.github.com> Date: Thu, 8 Sep 2022 03:47:25 +0530 Subject: [PATCH] fix(console): fix ascii-only flipped input (#377) Fixes: #372 `--ascii-only true` shows ascii `--ascii-only false` shows emojis if `--ascii-only` is not passed, default value will be true, shows emojis --- 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")