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

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

      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.

        For Gerrit Dashboard: QTBUG-72848
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes