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

SourceForge.net noreply at sourceforge.net
Sun Oct 12 06:42:45 EDT 2003


Bugs item #789995, was opened at 2003-08-17 09:10
Message generated for change (Settings changed) made by lemburg
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: Open
Resolution: None
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.


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

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