Hello!

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':
   http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#decimal
   http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#double

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.

BYtE
Philipp
-- 
Philipp Matthias Hahn <[EMAIL PROTECTED]>
 GPG/PGP: 9A540E39 @ keyrings.debian.org



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to