[PATCH] msvcrt: ecvt() (bug #12057)

Vitja Makarov vitja.makarov at gmail.com
Wed May 7 01:51:37 CDT 2008


Attached patch fixes bug #12057

Make MSVCRT_ecvt use ecvt_r(3) instead of sprintf.


here is simple test-case for this call, try it on linux, wine

$ cat foo.c
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int decpt, sign;
    printf("%s\n", ecvt(3.3, 10, &decpt, &sign));
    return 0;
}

vitja at stop:/tmp$ wine ./a.exe
fixme:spoolsv:serv_main (0 (nil))
3.3000000000e+00
vitja at stop:/tmp$ ./foo
3300000000
vitja at stop:/tmp$


vitja.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-ecvt.patch
Type: text/x-diff
Size: 912 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080507/c748ee27/attachment.patch 


More information about the wine-patches mailing list