[New-bugs-announce] [issue12010] Compile fails when sizeof(wchar_t) == 1
report at bugs.python.org
Thu May 5 22:45:30 CEST 2011
New submission from David Coles <coles.david at gmail.com>:
On Android platforms bionic defines wchar_t as char. This causes compiling of unicodeobject.c to fail with "#error "unsupported wchar_t and PyUNICODE sizes, see issue #8670".
The unusual thing is that the configure script does detect if wchar_t is usable (HAVE_USABLE_WCHAR_T) but the wide code support block in unicodeobject.c does not check this (only an #ifdef HAVE_WCHAR_T).
Possibly the quick solution is to change this #ifdef to '#if defined(HAVE_WCHAR_T) && defined(HAVE_USABLE_WCHAR_T)'. The header unicodeobject.h does check for HAVE_USABLE_WCHAR_T but will only define HAVE_WCHAR_T if it is not already defined.
title: Compile fails when sizeof(wchar_t) == 1
type: compile error
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce