[issue5255] unicode support with os.readlink()

scudeete report at bugs.python.org
Sat Feb 14 00:43:48 CET 2009


New submission from scudeete <scudette at gmail.com>:

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)

----------
components: Library (Lib)
messages: 81977
nosy: scudette
severity: normal
status: open
title: unicode support with os.readlink()
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5255>
_______________________________________


More information about the Python-bugs-list mailing list