Marc-Andre Lemburg <m...@egenix.com> added the comment:

Дилян Палаузов wrote:
> 
> New submission from Дилян Палаузов <dilyan.palau...@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.

----------
nosy: +lemburg
title: #include <wctype.h> in Objects/unicodetype_db.h and 
Objects/unicodectype.c -> #include <wctype.h> in Objects/unicodetype_db.h and   
     Objects/unicodectype.c

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11309>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to