[Bug 1789] New: msvcrt type conversion problem

Wine Bugs wine-bugs at winehq.com
Wed Oct 22 12:09:59 CDT 2003


http://bugs.winehq.com/show_bug.cgi?id=1789

           Summary: msvcrt type conversion problem
           Product: Wine
           Version: 20030911
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-resources
        AssignedTo: wine-bugs at winehq.com
        ReportedBy: phph109 at yahoo.es


An app made with PowerBuilder retrives data from a SQLServer7. All integers
shows up mangled with builtin msvcrt.dll, but ok with native msvcrt.dll

I made a program with PB that only fetches the number 789456123 from the
database and then diplays it in a window. With builtin msvcrt the number is
shown as '+'(without'') and with native msvcrt it is shown as expected
(789456123). Then I run it with --debugmsg +relay,+msvcrt using builtin version,
and then run it again with --debugmsg +relay,+snoop using native version.

This is some extracts from the logs

NATIVE
0009:CALL MSVCRT.sprintf(40831a98,10d31028 "%+#23.15e",7d800000,41c78712)
ret=10ba0fc8
0009:RET  MSVCRT.sprintf() retval=00000017 ret=10ba0fc8
0009:CALL MSVCRT.strchr(40831a98 "+7.894561230000000e+008",00000065) ret=10ba0fd8
0009:RET  MSVCRT.strchr() retval=40831aaa ret=10ba0fd8
0009:CALL MSVCRT.atol(40831aab) ret=10ba106a
0009:RET  MSVCRT.atol() retval=00000008 ret=10ba106a
[...]
0009:CALL MSVCRT.strncmp(10d5f160,418b1d60 "789456123",00000001) ret=10b6b41b

BUILTIN
0009:Call msvcrt.strchr(40831a98 " +7.894561230000000e+08",00000065) ret=10ba0fd8
0009:Ret  msvcrt.strchr() retval=40831aab ret=10ba0fd8
0009:Call msvcrt.atol(40831aac "+08") ret=10ba106a
0009:Ret  msvcrt.atol() retval=00000008 ret=10ba106a
[...]
0009:Call msvcrt.strncmp(10d5f160 "$",416a1d60 "+.8945612.3",00000001) ret=10b6b41b

Some notes:
The call to sprintf (first line in NATIVE above) doesn't happen with the builtin
one (or it's not shown in the log)
The error seem to be shown for the first time in the last line of BUILTIN above.

I have both logs (1.7MB compressed), but dont know were to submit them. I can
also provide the app I used, but not the SQLServer.

Get back to me if more info is needed.

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list