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

Alex Villaci­s Lasso a_villacis at palosanto.com
Mon Apr 25 18:21:30 CDT 2005


This is a resend of two changes in Single|Double conversion to BSTR 
which did not make it into the 20050419 release.

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-vartype-locale_plus_negative_zero_resend.patch
Type: text/x-patch
Size: 2595 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050425/9b6f51c0/wine-oleaut32-vartype-locale_plus_negative_zero_resend.bin


More information about the wine-patches mailing list