Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1271295

Bug#1121191: smkx/rmkx changes cause zsh issues

From Chris Hofstaedtler <zeha@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1121191: smkx/rmkx changes cause zsh issues
Date 2025-11-23 16:50 +0100
Message-ID <LUkvD-fb3s-3@gated-at.bofh.it> (permalink)
References (1 earlier) <LUitP-f9MP-11@gated-at.bofh.it> <LTX62-eUYQ-7@gated-at.bofh.it> <LUjJf-favx-11@gated-at.bofh.it> <LTX62-eUYQ-7@gated-at.bofh.it> <LUjJf-favx-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Chris Hofstaedtler <zeha@debian.org> [251123 15:53]:
>Reducing the system zshrc gives me:
>
>$ zsh -f
>tiksta% echo "$terminfo[smkx]"
>yes
>tiksta% echo "$terminfo[rmkx]"
>yes
>tiksta% echo $TERM
>alacritty
>
>After downgrading *ncurses* and libtinfo6 to 6.5+20250216-2:
>
>$ zsh -f
>tiksta% echo "$terminfo[smkx]"
>
>tiksta% echo "$terminfo[rmkx]"

Looking at this further, with this C test program:

#include <curses.h>
#include <term.h>

int main(int argc, char** argv)
{
     char *name = "rmkx";
     int num;
     initscr();
     num = tigetnum(name);
     printf("tigetnum %s = %d\n", name, num);
     num = tigetflag(name);
     printf("tigetflag %s = %d\n", name, num);
     return 0;
}

I get the following results, with ncurses 6.5+20251115-2:
   tigetnum rmkx = -2
   tigetflag rmkx = 255

With the older ncurses 6.5+20250216-2:
   tigetnum rmkx = -2
   tigetflag rmkx = -1

Note that these results were obtained using the Debian binaries in 
an arm64 VM.

I see patch 20251101 changed the definition of ABSENT_BOOLEAN from
   ((signed char)-1) 
to
   ((NCURSES_SBOOL)-1)

While configure.in detects the possibility of using `signed char` 
for `NCURSES_SBOOL`, I think by default it uses `char` (without 
--enable-signed-char).

That seems like a problem on platforms where char is unsigned, like 
arm64. Note that on amd64 ("x86"), char is signed.

Chris

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1121191: libncurses6:armhf: Remote terminal display a 'yes' word in the promt and another 'yes' word when a I press return Christian Marillat <marillat@deb-multimedia.org> - 2025-11-22 15:50 +0100
  Bug#1121191: libncurses6:armhf: Remote terminal display a 'yes' word in the promt and another 'yes' word when a I press return Thomas Dickey <dickey@invisible-island.net> - 2025-11-22 16:30 +0100
    Bug#1121191: libncurses6:armhf: Remote terminal display a 'yes' word in the promt and another 'yes' word when a I press return Christian Marillat <marillat@debian.org> - 2025-11-22 16:50 +0100
  Bug#1121191: (no subject) Christian Marillat <marillat@debian.org> - 2025-11-22 17:10 +0100
    Bug#1121191: (no subject) Thomas Dickey <dickey@invisible-island.net> - 2025-11-22 19:30 +0100
  Bug#1121191: (no subject) Adam Reviczky <reviczky@gmail.com> - 2025-11-23 06:30 +0100
    Bug#1121191: (no subject) Thomas Dickey <dickey@invisible-island.net> - 2025-11-23 12:10 +0100
      Bug#1121191: (no subject) Thomas Dickey <dickey@invisible-island.net> - 2025-11-23 12:40 +0100
  Bug#1121191: smkx/rmkx changes cause zsh issues Chris Hofstaedtler <zeha@debian.org> - 2025-11-23 16:00 +0100
    Bug#1121191: smkx/rmkx changes cause zsh issues Chris Hofstaedtler <zeha@debian.org> - 2025-11-23 16:50 +0100
      Bug#1121191: smkx/rmkx changes cause zsh issues Chris Hofstaedtler <zeha@debian.org> - 2025-11-23 17:00 +0100
  Bug#1121191: (no subject) Thomas Dickey <dickey@invisible-island.net> - 2025-11-23 17:40 +0100
  Bug#1121191: smkx/rmkx changes cause zsh issues Christian Marillat <marillat@debian.org> - 2025-11-23 18:40 +0100

csiph-web