diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-09-12 00:05:32 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 21:55:30 +0200 |
commit | 35cbb796aa85dadeb5451104c536a33acf1ebcfe (patch) | |
tree | 454c631a5c4590fd5c0246c76f4a4fd3fb02bc81 /include/charset.h | |
parent | cce289a928583a64db6ec8f813cc7884ae62c213 (diff) | |
download | u-boot-35cbb796aa85dadeb5451104c536a33acf1ebcfe.tar.gz |
efi_loader: support Unicode text input
Up to now the EFI_TEXT_INPUT_PROTOCOL only supported ASCII characters.
With the patch it can consume UTF-8 from the console.
Currently only the serial console and the console can deliver UTF-8.
Local consoles are restricted to ASCII.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/charset.h')
-rw-r--r-- | include/charset.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/charset.h b/include/charset.h index 686db5a1fe..4d45e246e5 100644 --- a/include/charset.h +++ b/include/charset.h @@ -14,6 +14,14 @@ #define MAX_UTF8_PER_UTF16 3 /** + * console_read_unicode() - read Unicode code point from console + * + * @code: pointer to store Unicode code point + * Return: 0 = success + */ +int console_read_unicode(s32 *code); + +/** * utf8_get() - get next UTF-8 code point from buffer * * @src: pointer to current byte, updated to point to next byte |