OSDN Git Service

speakup: make get_char actually get unicode characters
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 13 Mar 2017 00:17:13 +0000 (01:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2017 22:07:43 +0000 (06:07 +0800)
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 <samuel.thibault@ens-lyon.org>
Tested-by: Zahari Yurukov <zahari.yurukov@gmail.com>
Reviewed-by: Chris Brannon <chris@the-brannons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c

index fb8bef9..bd5fb32 100644 (file)
@@ -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;