New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curses: Link against libncursesw instead of libncurses #53654
Comments
Because of bpo-7384, Python3 now links _curses.so to ncurses library (bytes version) instead of ncursesw library (unicode version) if readline is linked to ncurses. I'm using Linux (Debian Sid). On Linux, Python3 should maybe only link to the unicode version, because the bytes version has many issues with unicode and lacks many functions. See also:
(reuse the nosy list from bpo-7384) |
Does anyone agree with me? |
Just a short explanation: In bpo-7384 I used the strict version of the patch for 2.7/3.2 because Thomas Dickey recommended not to load readline+ncurses and ncursesw Actually the distros should either link readline against libtinfo If someone feels confident that on Linux the linker can safely handle |
$ ldd $(/usr/bin/python3.1 -c 'import readline; print(readline.__file__)')|grep curses
libncurses.so.5 => /lib/libncurses.so.5 (0xb7537000)
$ ldd /lib/libreadline.so.6|grep curses
libncurses.so.5 => /lib/libncurses.so.5 (0xb76a6000)
Ok, I should maybe open a *Debian* bug to ask to link readline to ncursesw (and another to ensure that Python3 is also liked to ncursesw). |
There are two issues here: (1) If libreadline is already linked against ncurses, there is no way that (2) Interaction between the readline and curses modules: 2.6/3.1 still (1) implies that if your readline module is linked against ncurses in 3.1, |
Hmm, I understood that your ldd lines implied that things don't work as |
For the record, I filed the following bug against Mageia's libreadline: |
Done: I don't think that we should drop support of libncurses because it is still the only option on some OSes. I'm closing the issue because it is now fixed in Debian which was my initial concern. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: