From a949afb38ee3cece14a7f890ffc8f592cf9f3d16 Mon Sep 17 00:00:00 2001 From: cage Date: Sun, 25 Sep 2022 10:58:38 +0200 Subject: [PATCH] - [gopher] removed bad characters when printing lines. --- src/gopher-window.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gopher-window.lisp b/src/gopher-window.lisp index 2c70905..23713f6 100644 --- a/src/gopher-window.lisp +++ b/src/gopher-window.lisp @@ -92,7 +92,8 @@ (defun %gemline->text-simple (line prefix) (let* ((prefix-color (swconf:config-gopher-line-prefix-foreground)) (prefix-attribute (swconf:config-gopher-line-prefix-attribute)) - (colorized (message-window::colorize-lines (gopher-parser:username line))) + (username (remove-corrupting-utf8-chars (gopher-parser:username line))) + (colorized (message-window::colorize-lines username)) (colorized-prefix (tui:make-tui-string prefix :attributes prefix-attribute :fgcolor prefix-color)))