Transcode mh_execm text/plain output like we do for mh_exec. Adjust handling of transcoding errors. These changes should fix most cases of non-utf8 text making it to unac/index
This commit is contained in:
+5
-3
@@ -5,9 +5,11 @@ topdir=`dirname $0`/..
|
||||
|
||||
initvariables $0
|
||||
|
||||
# Should find the file where its unaccented and the other
|
||||
recollq Anemometre 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
# Should find the file where its unaccented and the other and also an instance
|
||||
# in misc.zip
|
||||
(
|
||||
recollq Anemometre
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
2 results
|
||||
3 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/txt/liste.txt] [liste.txt] 1182 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/txt/liste1.txt] [liste1.txt] 893 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/zip/misc.zip] [misc.zip] 168155 bytes
|
||||
|
||||
Reference in New Issue
Block a user