Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d45599

Browse files
committed
Issue #10910: Update FreedBSD version checks for the ctype UTF-8 workaround.
The original problem has been fixed in newer versions of FreeBSD. Patch by Dimitry Andric of the FreeBSD project.
1 parent 7659aab commit 3d45599

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Include/pyport.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,9 @@ extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
677677

678678
#ifdef __FreeBSD__
679679
#include <osreldate.h>
680-
#if __FreeBSD_version > 500039
680+
#if (__FreeBSD_version >= 500040 && __FreeBSD_version < 602113) || \
681+
(__FreeBSD_version >= 700000 && __FreeBSD_version < 700054) || \
682+
(__FreeBSD_version >= 800000 && __FreeBSD_version < 800001)
681683
# define _PY_PORT_CTYPE_UTF8_ISSUE
682684
#endif
683685
#endif

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ Build
175175
- Issue #26662: Set PYTHON_FOR_GEN in configure as the Python program to be
176176
used for file generation during the build.
177177

178+
- Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.
179+
Also update FreedBSD version checks for the original ctype UTF-8 workaround.
180+
181+
178182
What's New in Python 3.5.2?
179183
===========================
180184

0 commit comments

Comments
 (0)