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 pitrou
Recipients brian.curtin, pitrou, tim.golden
Date 2011-08-18.14:32:26
SpamBayes Score 3.25069e-05
Marked as misclassified No
Message-id <>
In the implementation of nt._getfinalpathname() (in posixmodule.c) we have:

    /* We have a good handle to the target, use it to determine the
       target path name. */
    buf_size = Py_GetFinalPathNameByHandleW(hFile, 0, 0, VOLUME_NAME_NT);


    result_length = Py_GetFinalPathNameByHandleW(hFile, target_path,
                                                 buf_size, VOLUME_NAME_DOS);

There doesn't seem to be a good reason to use VOLUME_NAME_NT in the first call and VOLUME_NAME_DOS in the second. Especially given the second call might require more characters than the first call, and therefore return a truncated path.
Date User Action Args
2011-08-18 14:32:27pitrousetrecipients: + pitrou, tim.golden, brian.curtin
2011-08-18 14:32:27pitrousetmessageid: <>
2011-08-18 14:32:26pitroulinkissue12777 messages
2011-08-18 14:32:26pitroucreate