FreeBSD Bugzilla – Attachment 152416 Details for
Bug 197226
lang/python27: fix pyport.h _PY_PORT_CTYPE_UTF8_ISSUE issue with c++
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch pyport.h
python27_pyport.h.diff (text/plain), 1.25 KB, created by
Thierry Thomas
on 2015-01-31 15:48:06 UTC
(
hide
)
Description:
Patch pyport.h
Filename:
MIME Type:
Creator:
Thierry Thomas
Created:
2015-01-31 15:48:06 UTC
Size:
1.25 KB
patch
obsolete
>diff -urN lang/python27.orig/Makefile lang/python27/Makefile >--- lang/python27.orig/Makefile 2015-01-28 21:22:01.000000000 +0100 >+++ lang/python27/Makefile 2015-01-31 15:28:47.000000000 +0100 >@@ -2,6 +2,7 @@ > > PORTNAME= python27 > PORTVERSION= 2.7.9 >+PORTREVISION= 1 > CATEGORIES= lang python ipv6 > MASTER_SITES= PYTHON > MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION} >diff -urN lang/python27.orig/files/patch-Include__pyport.h lang/python27/files/patch-Include__pyport.h >--- lang/python27.orig/files/patch-Include__pyport.h 1970-01-01 01:00:00.000000000 +0100 >+++ lang/python27/files/patch-Include__pyport.h 2015-01-31 15:32:10.000000000 +0100 >@@ -0,0 +1,23 @@ >+--- Include/pyport.h.orig 2014-12-10 16:59:32.000000000 +0100 >++++ Include/pyport.h 2015-01-31 15:31:27.000000000 +0100 >+@@ -713,6 +713,12 @@ >+ #endif >+ >+ #ifdef _PY_PORT_CTYPE_UTF8_ISSUE >++#ifndef __cplusplus >++ /* The workaround below is unsafe in C++ because >++ * the <locale> defines these symbols as real functions, >++ * with a slightly different signature. >++ * See Mac Ports issue #10910 >++ */ >+ #include <ctype.h> >+ #include <wctype.h> >+ #undef isalnum >+@@ -730,6 +736,7 @@ >+ #undef toupper >+ #define toupper(c) towupper(btowc(c)) >+ #endif >++#endif >+ >+ >+ /* Declarations for symbol visibility.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197226
: 152416 |
152496
|
152497
|
152498
|
152499