提交 c1889660 编写于 作者: S Samuel Thibault 提交者: Greg Kroah-Hartman

speakup: make get_char actually get unicode characters

9831013c ('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: NSamuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: NZahari Yurukov <zahari.yurukov@gmail.com>
Reviewed-by: NChris Brannon <chris@the-brannons.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 533131df
...@@ -483,7 +483,7 @@ static u16 get_char(struct vc_data *vc, u16 *pos, u_char *attribs) ...@@ -483,7 +483,7 @@ static u16 get_char(struct vc_data *vc, u16 *pos, u_char *attribs)
c |= 0x100; c |= 0x100;
} }
ch = inverse_translate(vc, c, 0); ch = inverse_translate(vc, c, 1);
*attribs = (w & 0xff00) >> 8; *attribs = (w & 0xff00) >> 8;
} }
return ch; return ch;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册