[Bug 18151] New: strtol - errno is not set
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(a)winehq.org ReportedBy: bugtrack(a)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 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=18151 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=18151 Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |xerox_xerox2000(a)yahoo.co.uk Component|-unknown |msvcrt Ever Confirmed|0 |1 --- Comment #1 from Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> 2009-08-23 18:17:25 --- confirming. could you add the test (to msvcrt/tests/string.c) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=18151 Eric Pouech <eric.pouech(a)orange.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech(a)orange.fr --- Comment #2 from Eric Pouech <eric.pouech(a)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+ -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=18151 Wilfried Pasquazzo <wilfried.pasquazzo(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wilfried.pasquazzo(a)gmail.co | |m --- Comment #3 from Wilfried Pasquazzo <wilfried.pasquazzo(a)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(a)home ~ $ wine test.exe l=2147483647 errno=34 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=18151 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Nikolay Sivov <bunglehead(a)gmail.com> 2009-09-23 14:53:12 --- Fixed by commit: http://source.winehq.org/git/wine.git/?a=commit;h=9eca2f81dc92f6e28ebe757262... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=18151 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> 2009-09-25 12:25:27 --- Closing bugs fixed in 1.1.30. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org