- 
    Bug 
- 
    Resolution: Done
- 
    P2: Important 
- 
    5.12.0
- 
    None
- 
    Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
- 
        
- 
        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.
- is duplicated by
- 
                    QTBUG-72868 Can not print text with Qt 5.12.0-1 and canon lbp capt driver -         
- Closed
 
-         
- 
                    QTBUG-73210 Broken PDF generation on Qt 5.12 -         
- Closed
 
-         
- 
                    QTBUG-73233 QPrinter does not respect PageSize and Orientation -         
- Closed
 
-         
| For Gerrit Dashboard: QTBUG-72848 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 249357,2 | Fix PDF generation for locales using comma as decimal separator | 5.12.1 | qt/qtbase | Status: MERGED | +2 | 0 |