Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2959

TabularFormatsTest test fails in Germany

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.22
    • Fix Version/s: 2.0.0, 1.23
    • Component/s: parser
    • Labels:

      Description

      So I wanted to build tika from source, and failed:

      TabularFormatsTest.testSAS7BDAT:229->assertContents:216 en_US Wrong text in row 9 and column 7 - 03(MAR|Mar)(63|1963)[:\s]09:46:40(.00)? vs 03Mär1963:09:46:40.00
      TabularFormatsTest.testXLS:236->assertContents:216 en_US Wrong text in row 9 and column 7 - 03(MAR|Mar)(63|1963)[:\s]09:46:40(.00)? vs 03Mär63 09:46:40
      TabularFormatsTest.testXLSB:250->assertContents:216 en_US Wrong text in row 9 and column 7 - 03(MAR|Mar)(63|1963)[:\s]09:46:40(.00)? vs 03Mär63 09:46:40
      TabularFormatsTest.testXLSX:243->assertContents:216 en_US Wrong text in row 9 and column 7 - 03(MAR|Mar)(63|1963)[:\s]09:46:40(.00)? vs 03Mär63 09:46:40
      

      It fails because the expected "Mar" is not identical to "Mär". Setting the Locale to the US in setup doesn't help. Until there is a better solution, I'm taking Tim's suggestion to adjust the expected results. See also thread on dev:
      https://mail-archives.apache.org/mod_mbox/tika-dev/201910.mbox/%3Cd55a024f-5044-a8cd-9745-399bb53711a7%40t-online.de%3E

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: