bug-ncurses
[Top][All Lists]
Advanced

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

Re: Issue with wbkgrnd when upgrading from 6.1 to 6.2


From: Anton Vidovic
Subject: Re: Issue with wbkgrnd when upgrading from 6.1 to 6.2
Date: Sun, 5 Apr 2020 12:37:07 +0200

Hello Thomas,

> This would probably work:
> It's probably the issue reported last month, fixed here:
> https://lists.gnu.org/archive/html/bug-ncurses/2020-03/msg00017.html
> (a small patch, in case you like to apply fixes)

I already checked the latest patch release 20200328 before the bug
report, so this solution does not work for the Lisp FFI.

The routine works for 7bit chars, calling wbkgrnd from Lisp with the
char 126 ~ (last 7bit graphical char) works as expected, but it
already fails for 161 ยก (the first graphical 8bit char).

I have reproduced this on both xterm and gnome terminal, with xterm
and xterm-256color and a de_DE.UTF-8 locale.

On the other hand, I can not reproduce the bug with the equivalent
minimal example in C.

#define _XOPEN_SOURCE_EXTENDED
#include <locale.h>
#include "/home/build/ncurses-6.2-20200328/include/curses.h"

int main()
{
cchar_t cch;
const wchar_t wch[2] = {L'\u2591', L'\0'};

setlocale(LC_ALL, "");

setcchar(&cch,
wch,
0,
0,
NULL);

initscr();

bkgrnd(&cch);

refresh();
getch();
endwin();
return 0;
}

Thanks,
Anton



reply via email to

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