This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, amaury.forgeotdarc, eric.araujo, ezio.melotti, pitrou, vstinner
Date 2010-08-08.23:29:45
SpamBayes Score 2.1581707e-05
Marked as misclassified No
Message-id <1281310188.07.0.159946919863.issue9425@psf.upfronthosting.co.za>
In-reply-to
Content
Py_UNICODE_strrchr.patch: Create Py_UNICODE_strrchr() function. It will be used for zipimport to work on unicode paths instead of bytes paths.

Antoine noticed that the input string is const whereas the output string is not const, which is unusual. I copy/pasted Py_UNICODE_strchr() prototype.

I suppose that const input and non const input is required to be able to use the function on const strings. The GNU libc uses the same strchr() prototype in its C version of string.h. In the C++ version of the header, it defines the strchr() twice: once with const input and output, once with non const input and ouput. The right solution is the C++ way, but C doesn't support polymophism.
History
Date User Action Args
2010-08-08 23:29:48vstinnersetrecipients: + vstinner, amaury.forgeotdarc, pitrou, ezio.melotti, eric.araujo, Arfrever
2010-08-08 23:29:48vstinnersetmessageid: <1281310188.07.0.159946919863.issue9425@psf.upfronthosting.co.za>
2010-08-08 23:29:46vstinnerlinkissue9425 messages
2010-08-08 23:29:46vstinnercreate