[Python-bugs-list] [ python-Bugs-773356 ] posix needs to generate unicode filenames where necessary

SourceForge.net noreply@sourceforge.net
Sat, 19 Jul 2003 04:00:49 -0700


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

Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Nobody/Anonymous (nobody)
Summary: posix needs to generate unicode filenames where necessary

Initial Comment:
Mac OS X supports Unicode filenames.  At the moment this
can't be enabled because when raising an IOError the
filename embedded in the IOError exception (and perhaps
others) is a plain string.  This attribute should be a
unicode object where necessary.

This can be demonstrated by building on Mac OS X with
the last line of posixpath.py replaced with

if sys.platform == "darwin": 
    supports_unicode_filenames = True
else:
    supports_unicode_filenames = False

and running the interpreter against Lib/test/test_pep277.py.

This needs to be corrected after the 2.3 release.


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

>Comment By: Martin v. Löwis (loewis)
Date: 2003-07-19 13:00

Message:
Logged In: YES 
user_id=21627

Python should not generate Unicode strings for the
exceptions at all. Instead, it should return the very same
strings in the exceptions that the user was passing in the
posix operations.

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

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