screen-devel
[Top][All Lists]
Advanced

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

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


From: Amadeusz Sławiński
Subject: Re: [screen-devel] [PATCH] fix UTF-8 characters with more than 2 bytes
Date: Sun, 17 Mar 2019 14:37:55 +0100

On Fri, 22 Feb 2019 13:29:17 +0100
Stefan Assmann <address@hidden> wrote:

> 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)

Hi,

I pushed it to master, but as mentioned in few other places already, encoding 
handling could use a rewrite.

Thanks,
Amadeusz



reply via email to

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