Issue 5255: unicode support with os.readlink() (original) (raw)

Issue5255

Created on 2009-02-13 23:43 by scudette, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg81977 - (view) Author: scudeete (scudette) Date: 2009-02-13 23:43
Python 2.5.2 has a bug in os.readlink() accepting unicode objects. Although it appears that other os functions can handle unicode fine: os.listdir("ششش") Works fine (in that it raises an OS.Error if the dir is not there), but: os.readlink("ششش") Raises: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)
msg81984 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2009-02-14 00:27
This is fixed in Python 2.6.
History
Date User Action Args
2022-04-11 14:56:45 admin set github: 49505
2009-02-14 00:27:33 loewis set status: open -> closedresolution: fixedmessages: + nosy: + loewis
2009-02-13 23:43:47 scudette create