[Bug 729226] New: Python curses module linked against ncurses library (instead of ncursesw)
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c0 Summary: Python curses module linked against ncurses library (instead of ncursesw) Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: All OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gagarin.gtn@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=461181) --> (http://bugzilla.novell.com/attachment.cgi?id=461181) Example python script User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Python curses module cannot display UTF-8 characters. It happens because python curses module linked against ncurses library (but should be ncursesw: http://bugs.python.org/issue1428494). Output of "ldd /usr/lib64/python2.7/lib-dynload/_curses.so": linux-vdso.so.1 => (0x00007fff71bf5000) libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f15f33d6000) libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x00007f15f302c000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f15f2e0e000) libc.so.6 => /lib64/libc.so.6 (0x00007f15f2aa1000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f15f289d000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f15f2699000) libm.so.6 => /lib64/libm.so.6 (0x00007f15f2442000) /lib64/ld-linux-x86-64.so.2 (0x00007f15f3867000) Reproducible: Always Steps to Reproduce: 1. Run example script from attachment Actual Results: Incorrect strings like "M-PM-!M-Q~" Expected Results: Strings with russian UTF-8 characters -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |jmatejek@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c1 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |werner@suse.com --- Comment #1 from Jan Matejek <jmatejek@suse.com> 2011-11-10 16:22:34 UTC --- it is linked against ncurses.so because it must use the same ncurses library as readline: http://bugs.python.org/issue7384 which currently uses ncurses. i have no idea whether it's feasible to do anything about it. Werner, opinion please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c2 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|werner@suse.com | --- Comment #2 from Dr. Werner Fink <werner@suse.com> 2011-11-11 08:42:33 UTC --- You may read /usr/share/doc/packages/ncurses/README.devel for more informations about how to use ncursesw5-config --cflags ncursesw5-config --libs for LDFLAGS or if you like ncursesw6-config --cflags for CFLAGS ncursesw6-config --libs for LDFLAGS -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c3 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |werner@suse.com --- Comment #3 from Jan Matejek <jmatejek@suse.com> 2011-11-15 16:12:21 UTC --- let me rephrase: Werner, is it feasible, or likely to happen, to have the systemwide readline library linked against ncursesw? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |werner@suse.com InfoProvider|werner@suse.com | --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2011-11-15 16:38:23 UTC --- Then I would have also link the bash with ncursesw, even with UTF-8 and wide character support this seems not necessary for the bash. As bash and readline uses tgetent(), tgetflag(), tgetnum(), tgetstr(), tgoto(), and tputs() I do not see why this should be required. Maybe it would be an option to split off from libncurses (and also from libncursesw) the libtinfo (as this is identical with libtinfow) then I would and could be able to use libtinfo instead of libncurses(w). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c5 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P5 - None Status|ASSIGNED |NEW CC| |jmatejek@suse.com AssignedTo|jmatejek@suse.com |werner@suse.com --- Comment #5 from Jan Matejek <jmatejek@suse.com> 2011-11-15 16:55:38 UTC --- yes, that would solve this problem too. reassigning to you; please reassign back to me when the splitoff/relink is done, or close as WONTFIX if that turns out to be a problem thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c6 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Basesystem Version|Final |Factory AssignedTo|werner@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 11.4 |openSUSE 12.1 OS/Version|openSUSE 11.4 |SuSE Other Severity|Normal |Minor --- Comment #6 from Dr. Werner Fink <werner@suse.com> 2011-11-15 17:32:08 UTC --- Not fore 11.4 nore 12.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |werner@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c7 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Dr. Werner Fink <werner@suse.com> 2011-11-16 11:16:36 UTC --- Fixed in factory, see request id 91780, request id 91781, and request id 91782 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-11-16 13:00:14 CET --- This is an autogenerated message for OBS integration: This bug (729226) was mentioned in https://build.opensuse.org/request/show/91780 Factory / ncurses -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c9 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|RESOLVED |REOPENED Resolution|FIXED | AssignedTo|werner@suse.com |jmatejek@suse.com --- Comment #9 from Jan Matejek <jmatejek@suse.com> 2011-11-16 16:42:32 UTC --- thanks reopening, will close as soon as the fix propagates and this is fixed in python -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c10 Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@suse.com --- Comment #10 from Marcus Meissner <meissner@suse.com> 2011-11-21 12:50:03 UTC --- this change seems to have caused quite some fallout, at least 66 packages failed... $ /work/built/info/failed/head-i586> grep -l libtinfo *|wc -l 66 $ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c11 --- Comment #11 from Dr. Werner Fink <werner@suse.com> 2011-11-21 13:10:45 UTC --- Maybe this is caused by -Wl,-Bsymbolic-functions I'm using for libncurses as well as for libtinfo and libreadline ?? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c12 --- Comment #12 from Marcus Meissner <meissner@suse.com> 2011-11-21 13:19:10 UTC --- I guess the above packages just miss the now required "-ltinfo" I do not think -Bsymbol-functions is involved. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c13 --- Comment #13 from Dr. Werner Fink <werner@suse.com> 2011-11-21 13:31:20 UTC --- Yep, this is correct. All packages using terminfo functions not depending on the character type should use -ltinfo. The best case would be if all package would use ncurses5-config or ncursesw5-config with the appropiate options --cflags and --libs. For those packages which do not us ncurses at all but only terminfo functions should use -ltinfo only as libtinfo for libncurses as well for libncursesw are identical -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c14 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #14 from Jan Matejek <jmatejek@suse.com> 2011-11-24 10:58:40 UTC --- this is now fixed in python as well -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=729226 https://bugzilla.novell.com/show_bug.cgi?id=729226#c15 jorge aires <jorge.adriano@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jorge.adriano@gmail.com --- Comment #15 from jorge aires <jorge.adriano@gmail.com> 2011-12-10 13:20:17 UTC --- Both Erlang and GHC now exhibit missing dependencies (libtinfo.so.5). I suspect it may be related to this report. http://download.opensuse.org/repositories/devel:/languages:/haskell:/platfor... http://download.opensuse.org/repositories/devel:/languages:/erlang/openSUSE_... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com