It worked!
Thanks
Tilman
Am 20.08.2020 um 03:42 schrieb Peter Lee:
Hi Tilman,
expected:<text/html; charset=[ISO-8859-1]> but was:<text/html;
charset=[windows-1252]>
I think this problem is caused by the charset detection strategy basing on line
separator(CRLF or LF) and the git autocrlf config. I also met this problem and
solved it like this :
Set autocrlf false by git config --global core.autocrlf
(https://link.getmailspring.com/link/[email protected]/0?redirect=core.autocrlf&recipient=ZGV2QHRpa2EuYXBhY2hlLm9yZw%3D%3D)
false
Delete everything except for the .git directory
Restore all the code by git reset --hard
This works on me. Hope it helps.
cheers,
Lee
On 8 20 2020, at 1:30 , Tilman Hausherr <[email protected]> wrote:
After many weeks I checked out the "main" branch, and get these build
errors:
Failures:
TestMimeTypes.testArchiveDetection:395->assertTypeByData:1275
expected:<[application/x-archive]> but was:<[text/plain]>
AutoDetectParserTest.testHTML:192->assertAutoDetect:145->assertAutoDetect:128->assertAutoDetect:99
Bad content type: Test parameters:
resourceRealName = /test-documents/testHTML.html
resourceStatedName = /test-documents/testHTML.html
realType = text/html; charset=ISO-8859-1
statedType = null
expectedContentFragment = Test Indexation Html
expected:<text/html; charset=[ISO-8859-1]> but was:<text/html;
charset=[windows-1252]>
AutoDetectParserTest.testText:224->assertAutoDetect:145->assertAutoDetect:128->assertAutoDetect:99
Bad content type: Test parameters:
resourceRealName = /test-documents/testTXT.txt
resourceStatedName = /test-documents/testTXT.txt
realType = text/plain; charset=ISO-8859-1
statedType = null
expectedContentFragment = indexation de Txt
expected:<text/plain; charset=[ISO-8859-1]> but was:<text/plain;
charset=[windows-1252]>
TextAndCSVParserTest.testSubclassingMimeTypesRemain:217 expected:<...-vcalendar;
charset=[ISO-8859-1]> but was:<...-vcalendar; charset=[windows-1252]>
ArParserTest.testArParsing:43 expected:<[application/x-archive]> but
was:<[text/plain; charset=windows-1252]>
ArParserTest.testEmbedded:75 expected:<1> but was:<0>
TXTParserTest.testSubclassingMimeTypesRemain:299 expected:<...-vcalendar;
charset=[ISO-8859-1]> but was:<...-vcalendar; charset=[windows-1252]>
Errors:
TestContainerAwareDetector.testBPList:571->assertTypeByData:66->assertTypeByNameAndData:76->assertTypeByNameAndData:96
» ArrayIndexOutOfBounds
PListParserTest.testWebArchive:48->TikaTest.getRecursiveMetadata:232->TikaTest.getRecursiveMetadata:306
» ArrayIndexOutOfBounds
PDFParserTest.testFileInAnnotationExtractedIfNoContents:1491->TikaTest.assertContains:112
» NullPointer