[issue3685] Crash while compiling Python 3000 in OpenBSD 4.4

Martin v. Löwis report at bugs.python.org
Sun Sep 21 09:45:48 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

Is there any problem with always computing the end of the string as "s +
wcslen(s)"? I feel that this is actually more readable than wcschr.

Here is a patch that does that. It doesn't change PC/getpathp.c, since
it's only used on Windows, where wcschr works correctly (AFAIK).

Henry, can you confirm that this patch still fixes the problem?

----------
keywords: +needs review
nosy: +loewis
Added file: http://bugs.python.org/file11537/wcslen.diff

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


More information about the Python-bugs-list mailing list