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 ezio.melotti
Recipients ezio.melotti, jvr, loewis
Date 2010-01-12.19:44:01
SpamBayes Score 9.499097e-09
Marked as misclassified No
Message-id <1263325445.51.0.897575364202.issue767645@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe os.path.supports_unicode_filenames should be deprecated.
The doc currently says:
"True if arbitrary Unicode strings can be used as file names (within limitations imposed by the file system), and if os.listdir() returns Unicode strings for a Unicode argument."

On Linux both the things work, even if the value of os.path.supports_unicode_filenames is still False:
>>> os.path.supports_unicode_filenames
False
>>> open(u'fòòbàr', 'w')
<open file u'f\xf2\xf2b\xe0r', mode 'w' at 0x9470778>
>>> os.listdir(u'.')
[u'f\xf2\xf2b\xe0r', ...]
>>> open(u'fòòbàr')
<open file u'f\xf2\xf2b\xe0r', mode 'r' at 0x9470778>
History
Date User Action Args
2010-01-12 19:44:05ezio.melottisetrecipients: + ezio.melotti, loewis, jvr
2010-01-12 19:44:05ezio.melottisetmessageid: <1263325445.51.0.897575364202.issue767645@psf.upfronthosting.co.za>
2010-01-12 19:44:01ezio.melottilinkissue767645 messages
2010-01-12 19:44:01ezio.melotticreate