Can not use file which is not UTF-8 encoded
Bug #908182 reported by
Byrial Jensen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PoProofRead. poproofread has MOVED to github |
Won't Fix
|
High
|
TLE |
Bug Description
I tried to open a file which uses latin1 (ISO-8859-1) encoding. It gave this warning message to the console:
/usr/lib/
textbuffer.
I can go forward and back in the file with PageUp and PageDown keys, but diff and comment windows are all empty, except for last one:
=======
Number of messages: 3
======
which happens to be the only chunk with only ASCII chars.
Changed in poproofread: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → TLE (k-nielsen81) |
milestone: | none → 0.1.8 |
Changed in poproofread: | |
status: | In Progress → Fix Committed |
Changed in poproofread: | |
status: | Fix Committed → Won't Fix |
To post a comment you must log in.
Maybe the best way to fix this is to always use Python unicode objects internally in poproofread, since it has to be handled correctly by gtk. The decode() method in gtparse can be used to do this easily (if it works right now; otherwise we should fix it first).