UnicodeError messages lack information about the problem input string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Currently bug reports about unicode problems require psychic debugging skills, because the Python error message is formatted as:
UnicodeDeco
The exception instance does have an 'object' attribute that stores the initial string, but only a single character is mentioned in the standard formatting. For issues such as bug 876511, having the content of the line that failed would greatly help working out which of several possible inputs was to blame.
Some care would need to be taken to avoid knock on problems with huge strings or badly constructed exceptions, but users may be more able to resolve certain issues such as bad locale settings if the basic output had more context.
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |