Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2015 15:48:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 197226] lang/python27: fix pyport.h _PY_PORT_CTYPE_UTF8_ISSUE issue with c++
Message-ID:  <bug-197226-21822-GiLsO7XtQZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197226-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197226-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Thierry Thomas <thierry@FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to python@FreeBSD.=
org:
Bug 197226: lang/python27: fix pyport.h _PY_PORT_CTYPE_UTF8_ISSUE issue with
c++
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197226



--- Description ---
Created attachment 152416
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D152416&action=
=3Dedit
Patch pyport.h

I'm trying to resurrect cad/freecad (with Andrea Venturoli), and it fails w=
ith
the following error:

In file included from
/usr/ports/cad/freecad.WIP/work/freecad-20150106/src/Main/MainGui.cpp:57:
In file included from
/usr/ports/cad/freecad.WIP/work/freecad-20150106/src/Base/Console.h:33:
In file included from
/usr/ports/cad/freecad.WIP/work/freecad-20150106/src/Base/Stream.h:32:
In file included from /usr/include/c++/v1/fstream:169:
In file included from /usr/include/c++/v1/ostream:131:
In file included from /usr/include/c++/v1/ios:216:
/usr/include/c++/v1/__locale:436:15: error: C++ requires a type specifier f=
or
all declarations
    char_type toupper(char_type __c) const
	      ^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/python2.7/pyport.h:731:29: note: expanded from macro
'toupper'
#define toupper(c) towupper(btowc(c))

The "fix" _PY_PORT_CTYPE_UTF8_ISSUE is also applied for Apple, and it causes
the same error on Mac Ports with C++, and they solved it with the attached
patch.

See https://trac.macports.org/attachment/ticket/44288/issue10910-workaround=
.txt

This patch also fixes the error for FreeBSD.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer python@FreeBSD.org=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197226-21822-GiLsO7XtQZ>