[Python-bugs-list] [ python-Bugs-789995 ] access fails on Windows with Unicode file name

SourceForge.net noreply at sourceforge.net
Sat Oct 18 18:24:32 EDT 2003


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

Category: Unicode
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Neil Hodgson (nyamatongwe)
Assigned to: Martin v. Löwis (loewis)
Summary: access fails on Windows with Unicode file name

Initial Comment:
Using current CVS version of Python 2.4 on Windows 
2000.
The os.access function fails when the filename argument 
is a Unicode string:

  File "test_pep277.py", line 103, in test_directory
    os.access(filename,os.R_OK)
UnicodeEncodeError: 'ascii' codec can't encode 
character '\udf' in position 0: ordinal not in range(128)

I will upload a patch to fix this in the patch manager.


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

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

Message:
Logged In: YES 
user_id=21627

Ok, closing it as fixed.

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

Comment By: Neil Hodgson (nyamatongwe)
Date: 2003-10-19 00:14

Message:
Logged In: YES 
user_id=12579

This bug was submitted in August at the same time as the 
patch, so was before revision 2.303.

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

Comment By: Martin v. Löwis (loewis)
Date: 2003-10-18 19:43

Message:
Logged In: YES 
user_id=21627

I cannot reproduce this. Are you sure you are using the
latest posixmodule.c?

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

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



More information about the Python-bugs-list mailing list