Skip to content

Commit

Permalink
fix(console): fix ascii-only flipped input (#377)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
michealkeines authored and hawkw committed Sep 29, 2023
1 parent 6612f31 commit 652ac34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio-console/src/config.rs
Expand Up @@ -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")
Expand Down

0 comments on commit 652ac34

Please sign in to comment.