oleaut32: use setlocale() around sprintfW to force use of
period as decimal separator (RESEND)
Alexandre Julliard
julliard at winehq.org
Mon Nov 20 04:07:47 CST 2006
Alex Villacís Lasso <a_villacis at palosanto.com> writes:
> @@ -4159,7 +4161,9 @@
> {
> WCHAR buff[256];
>
> + setlocale(LC_ALL, "C");
> sprintfW( buff, szFloatFormatW, fltIn );
> + setlocale(LC_ALL, "");
> return VarDecFromStr(buff, LOCALE_EN_US, 0, pDecOut);
You can't do that, setlocale() affects the whole process. In any case
we shouldn't need to go through a string to convert a float to a
decimal.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list