Homebrew/homebrew — pull request #31691 by sanelson (2014-08-19 02:34:36+00:00)
Title: Added pyport.h macro patch per http://bugs.python.org/issue10910

The following patch corrects a pyport.h FreeBSD/Mac OS X "fix" which causes errors in C++ compilation. This issue is well documented in both the python.org and the macports bugtrackers:

http://bugs.python.org/issue10910
https://trac.macports.org/ticket/44288

The summary of the issue from the macports ticket:
> 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.