From: Heinrich Schuchardt Date: Sat, 9 Nov 2019 09:59:02 +0000 (+0100) Subject: serial: sandbox: support Unicode X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5e5c785e34a18a12faedc93829e2a88ef22ade2a;p=u-boot.git serial: sandbox: support Unicode Due to a conversion error the sandbox does not accept byte values 0x80-0xff from the keyboard. The UEFI extended text input unit test requires Unicode support. Use unsigned char for the serial buffer. Signed-off-by: Heinrich Schuchardt Reviewed-by: Andy Shevchenko --- diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index 2f7bc24887..1af5cc12f3 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -33,7 +33,7 @@ DECLARE_GLOBAL_DATA_PTR; * serial_buf_write == serial_buf_read -> empty buffer * (serial_buf_write + 1) % 16 == serial_buf_read -> full buffer */ -static char serial_buf[16]; +static unsigned char serial_buf[16]; static unsigned int serial_buf_write; static unsigned int serial_buf_read;