[issue10754] os.path.isfile doesn't work with some greek characters
Wang Yanjin
report at bugs.python.org
Wed Dec 22 02:52:00 CET 2010
New submission from Wang Yanjin <wyj1046 at gmail.com>:
There is a file named "µTorrent.lnk" in the folder.
Here is the code:
#encoding=utf-8
import os
for i in os.listdir('.'):
print os.path.isfile(i), '\t', i
a = input()
and the output:
True 3.py
False aμ汉字.txt
True uTorrent.lnk
False μTorrent.lnk
False μTorrent1.lnk
False μ汉字.txt
False μ汉字.txt.lnk
True αγβδο
True φχ.txt
True φχ.txt.lnk
the function just doesn't work with the character "μ"
----------
components: Unicode, Windows
messages: 124473
nosy: wyj1046
priority: normal
severity: normal
status: open
title: os.path.isfile doesn't work with some greek characters
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10754>
_______________________________________
More information about the Python-bugs-list
mailing list