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 ocean-city
Recipients JDay, amaury.forgeotdarc, ocean-city
Date 2008-10-08.02:23:05
SpamBayes Score 1.0982272e-08
Marked as misclassified No
Message-id <1223432593.29.0.594370875926.issue4071@psf.upfronthosting.co.za>
In-reply-to
Content
According to http://msdn.microsoft.com/en-us/library/aa364963.aspx,
current implementation have several problems.

>In the ANSI version of this function, the name is limited to MAX_PATH
>characters. To extend this limit to 32,767 wide characters, call the
>Unicode version of the function and prepend "\\?\" to the path.

:-(

>If the lpBuffer buffer is too small to contain the path, the return
>value is the size, in TCHARs, of the buffer that is required to hold
>the path and the terminating null character.

We should allocate new buffer with this size and retry like already
doing for GetCurrentDirectory.

And one decision problem... What should we do when too long str is
passed to ntpath._getfullpathname? Report overflow error? Or convert to
unicode and retry with GetFullPathNameW? Hmm....
History
Date User Action Args
2008-10-08 02:23:13ocean-citysetrecipients: + ocean-city, amaury.forgeotdarc, JDay
2008-10-08 02:23:13ocean-citysetmessageid: <1223432593.29.0.594370875926.issue4071@psf.upfronthosting.co.za>
2008-10-08 02:23:07ocean-citylinkissue4071 messages
2008-10-08 02:23:05ocean-citycreate