Revert "cli_readline: Only insert printable chars"
authorPali Rohár <pali@kernel.org>
Tue, 1 Nov 2022 23:40:46 +0000 (00:40 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 21 Nov 2022 14:23:00 +0000 (09:23 -0500)
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>
common/cli_readline.c

index f6e2bcd..d6444f5 100644 (file)
@@ -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;
                }
        }