http://bugs.winehq.org/show_bug.cgi?id=18151
Summary: strtol - errno is not set Product: Wine Version: 1.1.16 Platform: PC OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: bugtrack@roumenpetrov.info
The output of following program : ================================= #include <stdlib.h> #include <stdio.h> #include <errno.h>
int main () { long l = -1; char *s, *e;
/*s = "18446744073709551615LL";*/ s = "9223372036854775807L"; l = strtol(s, &e, 0); fprintf(stderr, "l=%ld errno=%d\n", l, errno);
return (0); } ================================= cross-compiled with mingw and run under wine is l=2147483647 errno=0
Same program run on w2k output: l=2147483647 errno=34