From: Samuel Thibault Date: Mon, 13 Mar 2017 00:17:13 +0000 (+0100) Subject: speakup: make get_char actually get unicode characters X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c188966067b48acb94fea37aed06a142e3001122;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git speakup: make get_char actually get unicode characters 9831013cbdbd3d06430a1db01d8c32d50c7d1c04 ('speakup: convert screen reading to 16bit characters') paved the way for handling unicode characters in speakup, but for the review mode, it missed actually getting unicode characters from the VC. This fixes by just turning the use_unicode parameter to 1. Signed-off-by: Samuel Thibault Tested-by: Zahari Yurukov Reviewed-by: Chris Brannon Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index fb8bef991cdf..bd5fb32f812d 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -483,7 +483,7 @@ static u16 get_char(struct vc_data *vc, u16 *pos, u_char *attribs) c |= 0x100; } - ch = inverse_translate(vc, c, 0); + ch = inverse_translate(vc, c, 1); *attribs = (w & 0xff00) >> 8; } return ch;