[issue20597] PATH_MAX already defined on some Windows compilers

STINNER Victor report at bugs.python.org
Tue Feb 11 18:38:43 CET 2014


STINNER Victor added the comment:

I found it:

changeset:   87113:159e51e5fc2c
branch:      3.3
parent:      87102:46fc4fb2c8c5
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Nov 15 17:09:24 2013 +0100
files:       Python/pythonrun.c
description:
pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get the size of
the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1,
and PATH_MAX is not declared on IRIX.

----------

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


More information about the Python-bugs-list mailing list