FreeBSD Bugzilla – Attachment 152499 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 for python34.
python34_pyport.h.diff (text/plain), 1.27 KB, created by
Thierry Thomas
on 2015-02-02 21:56:33 UTC
(
hide
)
Description:
Patch for python34.
Filename:
MIME Type:
Creator:
Thierry Thomas
Created:
2015-02-02 21:56:33 UTC
Size:
1.27 KB
patch
obsolete
>diff -urN lang/python34.orig/Makefile lang/python34/Makefile >--- lang/python34.orig/Makefile 2014-12-22 17:45:41.000000000 +0100 >+++ lang/python34/Makefile 2015-02-02 22:35:10.000000000 +0100 >@@ -3,7 +3,7 @@ > > PORTNAME= python34 > PORTVERSION= 3.4.2 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= lang python ipv6 > MASTER_SITES= PYTHON > MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION} >diff -urN lang/python34.orig/files/patch-Include__pyport.h lang/python34/files/patch-Include__pyport.h >--- lang/python34.orig/files/patch-Include__pyport.h 1970-01-01 01:00:00.000000000 +0100 >+++ lang/python34/files/patch-Include__pyport.h 2015-02-02 22:36:36.000000000 +0100 >@@ -0,0 +1,23 @@ >+--- Include/pyport.h.orig 2014-10-08 10:18:11.000000000 +0200 >++++ Include/pyport.h 2015-02-02 22:36:15.000000000 +0100 >+@@ -691,6 +691,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 >+@@ -708,6 +714,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