Reporting errors in non-ASCII filenames fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This is with pyflakes 0.7, Python 2.7.3, LANG=en_US.UTF-8 on Fedora 17:
$ pyflakes pöö
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
warnings = checkRecursive(
File "/usr/lib/
warnings += checkPath(
File "/usr/lib/
reporter.
File "/usr/lib/
self.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
0.6.1 fails the same way, but 0.5 works:
$ pyflakes pöö
pöö: No such file or directory
Related branches
- Pyflakes Dev: Pending requested
-
Diff: 150 lines (+28/-30)5 files modifiedNEWS.txt (+3/-0)
pyflakes/__init__.py (+1/-1)
pyflakes/api.py (+12/-13)
pyflakes/reporter.py (+7/-11)
pyflakes/test/test_api.py (+5/-5)
Changed in pyflakes: | |
milestone: | none → 0.7.x |
status: | Confirmed → In Progress |
Changed in pyflakes: | |
status: | In Progress → Fix Committed |
Changed in pyflakes: | |
milestone: | 0.7.x → 0.7.1 |
status: | Fix Committed → Fix Released |
Confirmed with Python 2.x