OLEAUT32: (resend) Floating point locale, no negative zero

Alexandre Julliard julliard at winehq.org
Tue Apr 26 04:19:48 CDT 2005


Alex Villaci­s Lasso <a_villacis at palosanto.com> writes:

> Changelog:
> * Force Single|Double conversion to BSTR to use the decimal separator
> defined by the current locale, because that is what native oleaut32
> does, and to be consistent with later parsing of floating-point
> numbers, which uses current locale. Failure to apply this patch causes
> vartype test to fail in non-US locales with a decimal separator other
> than a period.
> * The number form "-0" is *not* allowed to be returned in a
> Single|Double conversion to BSTR in case of numeric undeflow, use
> unsigned zero instead. Some applications depend on this. Test included.

That's ugly, I think we really want to do our own formatting instead
of using the system printf and hacking the string afterwards.

-- 
Alexandre Julliard
julliard at winehq.org




More information about the wine-devel mailing list