Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23460

Fix PDFInfo in non-US locales

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.3
    • Component/s: PDF Utils

      Description

      This error happens on Windows installed with a non-US locale:

      org.junit.ComparisonFailure: expected:<612[.0 x 792.]0 points> but was:<612[,0 x 792,]0 points>
      	at org.nuxeo.ecm.platform.pdf.tests.PDFInfoTest.testPDFInfoHashMapValues(PDFInfoTest.java:152)
      

      The code in PDFInfo.toHashMap should pass a US Locale when calling String.format with %.1f

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m