Revert "cli_readline: Only insert printable chars"

This reverts commit d2e64d29c4.

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>
This commit is contained in:
Pali Rohár authored and Tom Rini committed 2022-11-21 09:23:00 -05:00
1 parent 9c41c06069
commit 60d7820093
1 file changed
+2 -4
+2 -4
View 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;
}
}