From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98A71C4332F for ; Tue, 1 Nov 2022 23:42:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91C42836C5; Wed, 2 Nov 2022 00:42:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="niQZtzsh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C189984F76; Wed, 2 Nov 2022 00:42:07 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CFFFA84BF3 for ; Wed, 2 Nov 2022 00:42:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6A507B82030; Tue, 1 Nov 2022 23:42:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9A4BC433D6; Tue, 1 Nov 2022 23:42:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667346124; bh=y8n7dmnodrgksCpdJyRzVDRCp5j1X+Vnr/QN1gqCRrU=; h=From:To:Cc:Subject:Date:From; b=niQZtzshLEVNYozzmnSSDlnGet1e7x05j3EZ8HT/s91SYxlRZ1442GdKRAXi/zHq3 yDU5ybH1jMg3jTHq9AsRAVBaunoa9t1SH94IYqUdfz+vUK92HRhOX5oAt2znxr4NZk frcgcLyo01njdmoh7DI9anLb1S/qZ2siLs2Bm9O2+PgBYjMJ2I1UhLKDXmZpyJmTJ2 ZCHbGxCV4fZ//6JctNg4nXPjUo1ArG7c4B8xRy5Yh18L8r6LfWZZTUzmTec2LnIoFx Sft2v0TtaEvRqzeLJPQfJxY9vHzcS/gsnLJGPyVcvn6TDILDZGJMD4J+8XzxT7syRv B5SkoUXcDHz7g== Received: by pali.im (Postfix) id 781187F8; Wed, 2 Nov 2022 00:42:01 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Simon Glass , Steve Bennett Cc: u-boot@lists.denx.de Subject: [PATCH] Revert "cli_readline: Only insert printable chars" Date: Wed, 2 Nov 2022 00:40:46 +0100 Message-Id: <20221101234046.5002-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 --- common/cli_readline.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/cli_readline.c b/common/cli_readline.c index f6e2bcdeceb2..d6444f5fc1d3 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; } } -- 2.20.1