Message74510
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.... |
|
Date |
User |
Action |
Args |
2008-10-08 02:23:13 | ocean-city | set | recipients:
+ ocean-city, amaury.forgeotdarc, JDay |
2008-10-08 02:23:13 | ocean-city | set | messageid: <1223432593.29.0.594370875926.issue4071@psf.upfronthosting.co.za> |
2008-10-08 02:23:07 | ocean-city | link | issue4071 messages |
2008-10-08 02:23:05 | ocean-city | create | |
|