[Bug 18151] New: strtol - errno is not set

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Apr 22 16:07:32 CDT 2009


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 at winehq.org
        ReportedBy: bugtrack at 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.



More information about the wine-bugs mailing list