serial: sandbox: support Unicode
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 9 Nov 2019 09:59:02 +0000 (10:59 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 10 Dec 2019 12:54:55 +0000 (05:54 -0700)
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 <xypron.glpk@gmx.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/serial/sandbox.c

index 2f7bc248871ff8a2e8ce836a9804beb6563b5f11..1af5cc12f35fd1ea19713d1019822dd8fc620379 100644 (file)
@@ -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;