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:
Jean-Francois Dockes
2011-10-20 14:00:38 +02:00
parent d94a4ec315
commit f544b28b4a
7 changed files with 53 additions and 13 deletions
+5 -3
View File
@@ -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
View File
@@ -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