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: access fails on Windows with Unicode file name
Type: Stage:
Components: Unicode Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, nyamatongwe
Priority: normal Keywords:

Created on 2003-08-17 07:10 by nyamatongwe, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (4)
msg17819 - (view) Author: Neil Hodgson (nyamatongwe) Date: 2003-08-17 07:10
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.
msg17820 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-18 17:43
Logged In: YES 
user_id=21627

I cannot reproduce this. Are you sure you are using the
latest posixmodule.c?
msg17821 - (view) Author: Neil Hodgson (nyamatongwe) Date: 2003-10-18 22:14
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.
msg17822 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-18 22:24
Logged In: YES 
user_id=21627

Ok, closing it as fixed.
History
Date User Action Args
2022-04-10 16:10:41adminsetgithub: 39078
2003-08-17 07:10:50nyamatongwecreate