[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

Ronald Oussoren report at bugs.python.org
Sat May 7 10:13:14 CEST 2011


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

The problem is that pyport tries to replace the ctypes definion of the isascii(ch) and related functions by a replacement that works better with UTF-8 on FreeBSD and OSX. That replacement is incompatible with the localfwd.h header.

The attached patch is a very crude hack that should fix the issue for this. This assumes that Python itself won't be compiled with C++ though, and might cause problems in C++ programs that use locale.h instead of localfwd.h.

As such I won't apply the patch just yet, the patch needs review from someone that's more experienced w.r.t. C++.

----------
keywords: +needs review, patch
stage:  -> patch review
Added file: http://bugs.python.org/file21917/issue10910.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10910>
_______________________________________


More information about the Python-bugs-list mailing list