Skip to content

Commit da0e972

Browse files
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
1 parent 8fb1732 commit da0e972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-console/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ fn default_log_directory() -> PathBuf {
411411

412412
impl ViewOptions {
413413
pub fn is_utf8(&self) -> bool {
414-
if !self.ascii_only.unwrap_or(true) {
414+
if self.ascii_only.unwrap_or(false) {
415415
return false;
416416
}
417417
self.lang.as_deref().unwrap_or_default().ends_with("UTF-8")

0 commit comments

Comments
 (0)