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

SourceForge.net noreply at sourceforge.net
Sun Mar 21 15:34:52 EST 2004


Bugs item #773356, was opened at 2003-07-17 20:24
Message generated for change (Comment added) made by mondragon
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: Closed
>Resolution: Fixed
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: Nick Bastin (mondragon)
Date: 2004-03-21 15:34

Message:
Logged In: YES 
user_id=430343

Fixed in:
NEWS 1.957
fileobject.c 2.189


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

Comment By: Martin v. Löwis (loewis)
Date: 2003-07-19 07: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



More information about the Python-bugs-list mailing list