Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72848

locale de_DE.UTF-8 causes ',' instead of '.' in PDF-Metadata written via QPdfWriter

    XMLWordPrintable

Details

    • Linux/X11
    • 81c3c66bb44c98b29a0181450ffa38a1c1fa06d9 (qt/qtbase/5.12.1)

    Description

      If the locale is set to German (in my case by the environment variable LANG=de_DE.UTF-8) and I write a PDF-file using the QPdfWriter (or Qprinter) class in the PDF meta data ',' is used instead of the required '.' . (in German number fractions are indicated by ',' not by '.') Example:

      /MediaBox [0 0 842,000000 1191,000000]

      instead of

      /MediaBox [0 0 842.000000 1191.000000]

      I can fix this in the code by explicitly setting the locale to "C". However setting a certain locale should not cause PDF metadata to be compromised.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              anrocha André De La Rocha (Inactive)
              aanker Andreas Rhodin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes