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.

classification
Title: posix needs to generate unicode filenames where necessary
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: loewis, nbastin, skip.montanaro
Priority: normal Keywords:

Created on 2003-07-18 00:24 by skip.montanaro, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (3)
msg17107 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-07-18 00:24
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.
msg17108 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-07-19 11:00
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.
msg17109 - (view) Author: Nick Bastin (nbastin) * (Python committer) Date: 2004-03-21 20:34
Logged In: YES 
user_id=430343

Fixed in:
NEWS 1.957
fileobject.c 2.189
History
Date User Action Args
2022-04-10 16:10:01adminsetgithub: 38872
2003-07-18 00:24:58skip.montanarocreate