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 ubershmekel
Recipients ubershmekel, vstinner
Date 2011-10-24.19:51:38
SpamBayes Score 7.4558666e-05
Marked as misclassified No
Message-id <>
An example error with abspath and bytes input:

    >>> os.path.abspath('.')
    >>> os.path.abspath(b'.')
    >>> os.listdir(os.path.abspath(b'.'))
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\yuv\\Desktop\\YuvDesktop\\??????/*.*'

I couldn't follow the implementation, I got stuck not being able to locate the definition for os.getcwdb so I couldn't join you for that part. Here's another possible solution:

    >>> win32api.GetFullPathName('.')
    >>> win32api.GetShortPathName(win32api.GetFullPathName('.'))

The short path is ascii but the problem is not all windows file systems have 8.3 filenames [1]. So I think your suggestion is the best solution.

Date User Action Args
2011-10-24 19:51:40ubershmekelsetrecipients: + ubershmekel, vstinner
2011-10-24 19:51:40ubershmekelsetmessageid: <>
2011-10-24 19:51:39ubershmekellinkissue13247 messages
2011-10-24 19:51:38ubershmekelcreate