1 message in org.python.python-bugs-list[ python-Bugs-773356 ] posix needs to...
FromSent OnAttachments
SourceForge.netMar 21, 2004 3:34 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-773356 ] posix needs to generate unicode filenames where necessaryActions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 21, 2004 3:34:42 pm
List:org.python.python-bugs-list

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.

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