aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-11-02 00:40:46 +0100
committerTom Rini <trini@konsulko.com>2022-11-21 09:23:00 -0500
commit60d78200938faa72f531172299b7dfeebcbede47 (patch)
treeec6540521db30f9985b68353025d34846b47b144
parent9c41c06069b889e65243f7fef4d0bdd5071bae1e (diff)
downloadu-boot-60d78200938faa72f531172299b7dfeebcbede47.zip
u-boot-60d78200938faa72f531172299b7dfeebcbede47.tar.gz
u-boot-60d78200938faa72f531172299b7dfeebcbede47.tar.bz2
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 <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/cli_readline.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/cli_readline.c b/common/cli_readline.c
index f6e2bcd..d6444f5 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;
}
}