screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [PATCH] fix UTF-8 characters with more than 2 bytes


From: Stefan Assmann
Subject: [screen-devel] [PATCH] fix UTF-8 characters with more than 2 bytes
Date: Fri, 22 Feb 2019 13:29:17 +0100

Characters are stored as uint32 nowadays. Looking at the lower bytes
only seems to be an oversight from the fontx clean up.

Fixes: f18f5d0da1d4 get rid of fontx
---
 src/display.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/display.c b/src/display.c
index 0e2844815b10..3bfa12add6eb 100644
--- a/src/display.c
+++ b/src/display.c
@@ -431,7 +431,6 @@ static void RAW_PUTCHAR(uint32_t c)
 {
 
        if (D_encoding == UTF8) {
-               c = (c & 255) | (unsigned char)D_rend.font << 8;
                if (D_mbcs) {
                        c = D_mbcs;
                        if (D_x == D_width)
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]