[Bug 1999171] Re: tparm dynamic variables broken
Avram Lubkin
1999171 at bugs.launchpad.net
Sat Dec 10 15:23:14 UTC 2022
I was able to confirm this also fails on Fedora 37 with ncurses-
libs-6.3-3.20220501, so this looks like a regression in 6.3
@dickey-his, it looks like there were several changes to tparm between 6.2 and 6.3. Is it possible this could have caused the issue?
Static (uppercase) variables are working as expected, but dynamic (lowercase) variables don't seem to get set.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ncurses in Ubuntu.
https://bugs.launchpad.net/bugs/1999171
Title:
tparm dynamic variables broken
Status in ncurses package in Ubuntu:
New
Bug description:
I use the Python curses library for convenience, but this seems to be
an ncurses bug as Python simply wraps the ncurses library.
As you can see from example below, the dynamic variable x gets stored as 4, but, when it's
recalled, 0 is returned instead of 4. This was on 22.04 and 20.04 with libncurses6 6.3-2.
I've confirm the behavior is correct on Fedora 36 with ncurses-
libs-6.2-9.20210508. I apologize I haven't been able to narrow it down
farther, but figured it would be good to get a bug logged in case
someone has more insight.
```
Python 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import curses
>>> curses.setupterm()
>>> curses.tparm(b'%p1%Px', 4)
b''
>>> curses.tparm(b'%gx%d')
b'0'
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/1999171/+subscriptions
More information about the foundations-bugs
mailing list