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 lemburg
Recipients dilyan.palauzov, lemburg
Date 2011-02-24.15:01:49
SpamBayes Score 3.552195e-06
Marked as misclassified No
Message-id <4D6672DB.3010501@egenix.com>
In-reply-to <1298559104.85.0.0545098544646.issue11309@psf.upfronthosting.co.za>
Content
Дилян Палаузов wrote:
> 
> New submission from Дилян Палаузов <dilyan.palauzov@aegee.org>:
> 
> As of python 2.7.1 configured with "--enable-ipv6 --enable-unicode --with-system-expat --with-system-ffi --with-signal-module --with-threads --with-wctype-functions --enable-shared":
> 
> Please #include <wctype.h> in Objects/unicodetype_db.h and Objects/unicodectype.c
> 
> compilation produces the warnings:
> 
> In file included from Objects/unicodectype.c:34:0:
> Objects/unicodetype_db.h: In function '_PyUnicodeUCS2_IsWhitespace':
> Objects/unicodetype_db.h:3277:5: warning: implicit declaration of function 'iswspace'
> Objects/unicodectype.c: In function '_PyUnicodeUCS2_IsLowercase':
> Objects/unicodectype.c:192:5: warning: implicit declaration of function 'iswlower'
> Objects/unicodectype.c: In function '_PyUnicodeUCS2_IsUppercase':
> Objects/unicodectype.c:197:5: warning: implicit declaration of function 'iswupper'
> Objects/unicodectype.c: In function '_PyUnicodeUCS2_ToLowercase':
> Objects/unicodectype.c:202:5: warning: implicit declaration of function 'towlower'
> Objects/unicodectype.c:202:12: warning: incompatible implicit declaration of built-in function 'towlower'
> Objects/unicodectype.c: In function '_PyUnicodeUCS2_ToUppercase':
> Objects/unicodectype.c:207:5: warning: implicit declaration of function 'towupper'
> Objects/unicodectype.c:207:12: warning: incompatible implicit declaration of built-in function 'towupper'
> Objects/unicodectype.c: In function '_PyUnicodeUCS2_IsAlpha':
> Objects/unicodectype.c:212:5: warning: implicit declaration of function 'iswalpha'

--with-wctype-functions will only work if you have configured Python
to use the Unicode variant which is used by wchar_t on your platform.

Given the warnings you are seeing, this appears to be UCS4,
so you have to add --enable-unicode=ucs4 to your configure line.

Please note that support for wctype functions is not being
actively supported in Python anymore. I'd suggest you remove
the --with-wctype-functions option altogether.
History
Date User Action Args
2011-02-24 15:01:51lemburgsetrecipients: + lemburg, dilyan.palauzov
2011-02-24 15:01:49lemburglinkissue11309 messages
2011-02-24 15:01:49lemburgcreate