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 ishimoto, terry.reedy, ubershmekel, vstinner
Date 2011-10-26.07:02:40
SpamBayes Score 6.5140455e-05
Marked as misclassified No
Message-id <1319612560.91.0.441550203825.issue13247@psf.upfronthosting.co.za>
In-reply-to
Content
Another option btw is to use utf-16, which will work but it's a bit ugly as well:

>>> os.listdir(os.path.abspath(u'.').encode('utf-16'))
[]
>>> os.path.abspath(u'.')
u'C:\\Users\\alon\\Desktop\\\u05e9\u05dc\u05d5\u05dd'
>>> os.path.abspath(u'.').encode('utf-16')
'\xff\xfeC\x00:\x00\\\x00U\x00s\x00e\x00r\x00s\x00\\\x00a\x00l\x00o\x00n\x00\\\x
00D\x00e\x00s\x00k\x00t\x00o\x00p\x00\\\x00\xe9\x05\xdc\x05\xd5\x05\xdd\x05'
>>> os.listdir(os.path.abspath(u'.').encode('utf-16'))
[]

Tested on python 2.7, but you know what I mean.
History
Date User Action Args
2011-10-26 07:02:40ubershmekelsetrecipients: + ubershmekel, terry.reedy, ishimoto, vstinner
2011-10-26 07:02:40ubershmekelsetmessageid: <1319612560.91.0.441550203825.issue13247@psf.upfronthosting.co.za>
2011-10-26 07:02:40ubershmekellinkissue13247 messages
2011-10-26 07:02:40ubershmekelcreate