Search inside non-utf8 files does not work

Bug #1698004 reported by Yanpas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Catfish
Confirmed
Medium

Bug Description

STR:
download tarball, extract it
search inside testfolder for "this"
Only text.txt would be displayed, despite such byte sequence exists in the second file too

Revision history for this message
Yanpas (yanpaso) wrote :
Revision history for this message
In , Bluesabre-1 (bluesabre-1) wrote :

From https://bugs.launchpad.net/catfish-search/+bug/1698004

STR:
download tarball, extract it
search inside testfolder for "this"
Only text.txt would be displayed, despite such byte sequence exists in the second file too

Sean Davis (bluesabre)
Changed in catfish-search:
importance: Undecided → Unknown
status: New → Unknown
Changed in catfish-search:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Cintact (cintact) wrote :

Created attachment 8272
Fixes the fulltext search for non UTF-8 text files

Here's my take on this bug. It adds a dependency though (chardet) so let me know if this is not possible. It has been tested with python 2 and 3 on xubuntu 18.04.

Hope it helps.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.