New submission from Wang Yanjin <wyj1...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue10754> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com