Title: mbstate_t requires _INCLUDE__STDC_A1_SOURCE
Type: compile error Stage: resolved
Components: Versions: Python 3.3, Python 3.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, python-dev, trent
Priority: low Keywords: patch

Created on 2013-12-07 20:59 by christian.heimes, last changed 2013-12-08 14:21 by python-dev. This issue is now closed.

File name Uploaded Description Edit
issue19922.patch christian.heimes, 2013-12-07 21:47 review
Messages (4)
msg205486 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-12-07 20:59
On HP-UX mbstate_t for mbrtowc() is only available when _INCLUDE__STDC_A1_SOURCE is defined:

	cc -Ae -c  -O  -O   -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Objects/unicodeobject.o Objects/unicodeobject.c
cc: "Objects/unicodeobject.c", line 3493: error 1000: Unexpected symbol: "mbs".
cc: "Objects/unicodeobject.c", line 3493: error 1588: "mbstate_t" undefined.
cc: "Objects/unicodeobject.c", line 3497: error 1588: "mbs" undefined.
cc: "Objects/unicodeobject.c", line 3497: warning 563: Argument #1 is not the correct type.
cc: "Objects/unicodeobject.c", line 3497: error 1594: The sizeof operator cannot be applied to types with unknown size.
msg205494 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-12-07 22:14
msg205495 - (view) Author: Roundup Robot (python-dev) Date: 2013-12-07 22:39
New changeset d8cfc7106f41 by Christian Heimes in branch 'default':
Issue #19922: define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
msg205565 - (view) Author: Roundup Robot (python-dev) Date: 2013-12-08 14:21
New changeset 4221d5d9ac84 by Christian Heimes in branch 'default':
Attempt to fix OpenIndiana build issue introduced by #19922
Date User Action Args
2013-12-08 14:21:16python-devsetmessages: + msg205565
2013-12-08 00:50:08christian.heimessetstatus: open -> closed
resolution: fixed
stage: needs patch -> resolved
2013-12-07 22:39:41python-devsetnosy: + python-dev
messages: + msg205495
2013-12-07 22:14:53christian.heimessetmessages: + msg205494
2013-12-07 21:47:03christian.heimessetfiles: + issue19922.patch
keywords: + patch
2013-12-07 20:59:38christian.heimescreate