This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Nicholas.Cole, akuchling, cben, gpolo, inigoserna, pitrou, python-dev, r.david.murray, schodet, vstinner, zeha
Date 2011-07-15.14:36:35
SpamBayes Score 3.3369736e-07
Marked as misclassified No
Message-id <>
> implicit declaration of function ‘wget_wch’

Oh oh, I expected such error: it means that your ncurses library don't have the wide character API. The compiler command confirm that: "gcc ... -lncurses ...". You use libncurses and not libncursesw.

Antoine told me that libncursesw is available on its OS, but Python chose libncurses. I suppose that it's because readline is linked to libncurses (and not libncursesw) => see issue #7384.

Antoine setup is not rare: many Linux distro link readline to libncurses, and so Python cannot use libncursesw.

For this issue, it's not a problem: we can just add a test to check if get_wch is available or not, and only define the Python function if the C function does exist. But for #12567, it's a bigger problem because it means that we cannot always use the wide character functions if the argument is Unicode (character/string).
Date User Action Args
2011-07-15 14:36:35vstinnersetrecipients: + vstinner, akuchling, cben, pitrou, gpolo, r.david.murray, inigoserna, zeha, schodet, python-dev, Nicholas.Cole
2011-07-15 14:36:35vstinnersetmessageid: <>
2011-07-15 14:36:35vstinnerlinkissue6755 messages
2011-07-15 14:36:35vstinnercreate