Red Hat Bugzilla – Bug 1258791
sushi does not preview non utf8 text files
Last modified: 2017-08-01 18:59:56 EDT
Description of problem:
I've tried to open some text files and only utf-8 can be displayed. I've tried iso8859-1, iso8859-15, utf-8, utf-16, cp1250 and cp1252.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Select any text file which is not encoded in utf-8
2. Hit space bar
A spinner in sushi window is cycling, and cycling, ...
sushi windows with a scrollable context of sample non utf-8 text file
I've tested the same sample text file with special characters converted to different encodings via iconv
This works with upstream sushi, the fix is in
Author: Cosimo Cecchi <email@example.com>
Date: Thu Jun 25 15:07:53 2015 -0700
text-loader: use GtkSourceFileLoader
Instead of our homebrew implementation, since GtkSourceFileLoader deals
with non-UTF8 text as well.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.