[New-bugs-announce] [issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

Jim Schneider report at bugs.python.org
Thu Jul 14 19:59:41 CEST 2011


New submission from Jim Schneider <jim.schneider at dataflux.com>:

In Modules/getpath.c, the following line (#138) causes problems with some compilers (HP/UX 11, in particular - there could be others):

static wchar_t *lib_python = L"lib/python" VERSION;

Similarly, line #644:

        module_search_path = L"" PYTHONPATH;

The default HP/UX compiler fails to compile this file with the error "Cannot concatenate character string literal and wide string literal".  The attached patch converts these two string literals to wide string literals that the HP/UX compiler can understand.

Very limited testing indicates that the patch is benign (it does not affect the build on Linux running on x86_64).

----------
components: Build
files: getpath.patch
keywords: patch
messages: 140348
nosy: jschneid
priority: normal
severity: normal
status: open
title: Compiler workaround for wide string constants in Modules/getpath.c (patch)
type: compile error
versions: Python 3.2
Added file: http://bugs.python.org/file22655/getpath.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12561>
_______________________________________


More information about the New-bugs-announce mailing list