Search inside non-utf8 files does not work

Bug #1698004 reported by Yanpas on 2017-06-14
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

Yanpas (yanpaso) 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) on 2018-06-29
Changed in catfish-search:
importance: Undecided → Unknown
status: New → Unknown
Changed in catfish-search:
importance: Unknown → Medium
status: Unknown → Confirmed

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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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