From: Pali Rohár Date: Tue, 1 Nov 2022 23:40:46 +0000 (+0100) Subject: Revert "cli_readline: Only insert printable chars" X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=60d78200938faa72f531172299b7dfeebcbede47;p=u-boot.git Revert "cli_readline: Only insert printable chars" This reverts commit d2e64d29c44dee6d455f7705dd1cf1af8674ad9a. This commit broke support for pound sign (£) and euro sign (€) keys on Nokia N900 keypad. Signed-off-by: Pali Rohár Reviewed-by: Simon Glass --- diff --git a/common/cli_readline.c b/common/cli_readline.c index f6e2bcdece..d6444f5fc1 100644 --- a/common/cli_readline.c +++ b/common/cli_readline.c @@ -517,10 +517,8 @@ static int cread_line(const char *const prompt, char *buf, unsigned int *len, } #endif default: - if (ichar >= ' ' && ichar <= '~') { - cread_add_char(ichar, insert, &num, &eol_num, - buf, *len); - } + cread_add_char(ichar, insert, &num, &eol_num, buf, + *len); break; } }