[Python-bugs-list] [ python-Bugs-767645 ] incorrect os.path.supports_unicode_filenames

SourceForge.net noreply@sourceforge.net
Wed, 09 Jul 2003 11:07:16 -0700


Bugs item #767645, was opened at 2003-07-08 02:42
Message generated for change (Comment added) made by bcannon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=767645&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Just van Rossum (jvr)
Assigned to: Nobody/Anonymous (nobody)
Summary: incorrect os.path.supports_unicode_filenames

Initial Comment:
At least on OSX, unicode file names are pretty much fully 
supported, yet os.path.supports_unicode_filenames is False 
(it comes from posixpath.py, which hard codes it). What 
would be a proper way to detect unicode filename support 
for posix platforms?

----------------------------------------------------------------------

>Comment By: Brett Cannon (bcannon)
Date: 2003-07-09 11:07

Message:
Logged In: YES 
user_id=357491

What happens if you try to create a file using Unicode names?  
Could a test get the temp directory for the platform, write a file 
with Unicode in it, and then check for an error?  Or if it always 
succeeds, write it, and then see if the results match?

In other words, does writing Unicode to an ASCII file system ever 
lead to a mangling of the name?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=767645&group_id=5470