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
http://bugs.winehq.org/show_bug.cgi?id=18151
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=18151
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |xerox_xerox2000@yahoo.co.uk Component|-unknown |msvcrt Ever Confirmed|0 |1
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2009-08-23 18:17:25 --- confirming. could you add the test (to msvcrt/tests/string.c)
http://bugs.winehq.org/show_bug.cgi?id=18151
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #2 from Eric Pouech eric.pouech@orange.fr 2009-08-29 15:36:51 --- patch sent to wine-patch (for both strtol and strtoul), test case derivated from the code in this PR included as well A+
http://bugs.winehq.org/show_bug.cgi?id=18151
Wilfried Pasquazzo wilfried.pasquazzo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wilfried.pasquazzo@gmail.co | |m
--- Comment #3 from Wilfried Pasquazzo wilfried.pasquazzo@gmail.com 2009-09-23 14:47:50 --- Bug is fixed, can be closed now.
Patch got commited a while ago and the test program now gives the correct errorcode in Wine:
me@home ~ $ wine test.exe l=2147483647 errno=34
http://bugs.winehq.org/show_bug.cgi?id=18151
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com 2009-09-23 14:53:12 --- Fixed by commit:
http://source.winehq.org/git/wine.git/?a=commit;h=9eca2f81dc92f6e28ebe757262...
http://bugs.winehq.org/show_bug.cgi?id=18151
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2009-09-25 12:25:27 --- Closing bugs fixed in 1.1.30.