Opened 18 years ago
Closed 18 years ago
#4249 closed (fixed)
[unicode] views/debug.py did not read encoding (# -*- coding: iso-8859-1 -*-)
Reported by: | Owned by: | Malcolm Tredinnick | |
---|---|---|---|
Component: | Uncategorized | Version: | other branch |
Severity: | Keywords: | unicode PEP0263 | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
here is a small patch. views/debug.py failed to display the
traceback because the file was encoded in latin1.
I patched _get_lines_from_file() to read the encoding string of the
python file.
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | views_debug_py.diff added |
---|
comment:1 by , 18 years ago
Owner: | changed from | to
---|---|
Summary: | Unicode branch: views/debug.py did not read encoding (# -*- coding: iso-8859-1 -*-) → [unicode] views/debug.py did not read encoding (# -*- coding: iso-8859-1 -*-) |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Looks like the right idea. I still have to audit that part of the tree for unicode problems, but this patch looks like a fix for the problem you are seeing. I'll apply it when I get to that part.