hi all,

because of a bug in OOo's ODF export i'd like to change the implementation
of ::rtl::math::doubleToString() in sal/rtl/source/math.cxx.

currently the function does not produce the right strings for double
values Not-a-Number and +/- Infinity.

the XMLSchema-2 specification defines specific literals for these, but
currently the ::rtl::math::doubleToString() function produces different
strings, apparently inspired from what the MSFT runtime library does.

this would be a ABI compatible change, but it would change the strings
produced for these double values.
(of course the other direction is easy: parse both variants.)

this would change the value produced by various RTL methods.
- various ::rtl::math::doubleTo* functions.
- various "C" rtl_math_doubleTo* functions.
- most importantly ::rtl::OUString::valueOf(double).

does anybody rely on the current RTL string representation of
Infinity/Not-a-Number?

regards,
 michael

-- 
"We think in generalities, but we live in detail."
 -- Alfred North Whitehead


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to