Bug#483289: Further information
I cloned my bug report from QLandkarte to qt4-x11, because the change
between qt4.3 and qt4.4 might affect other packets as well.
In my view XML might get used in the following two use-cases:
1. When using XML as a "display-format" (like XHTML), serializing
doubles with locale support is probably fine.
2. When using XML as a "portable storage format", serializing
doubles with locale support is stupid, because now you need the
information, which locale is to be used. (xml:lang?)
"1.000" can be interpreted as 1 in en_US with '.' as the decimal
point, or as 1000 in de_DE with '.' as the thousands separator.
For example, XML-Schema explicitly specifies to use a 'period':
I still don't know if this is a bug in the implementation or the
documentation. Either fix the implementation or put a big fat warning in
the documentation, that QDomElement::setAttribute(double) is locale
dependent and shouldn't be used for use-case 2.
Philipp Matthias Hahn <email@example.com>
GPG/PGP: 9A540E39 @ keyrings.debian.org