https://bugs.winehq.org/show_bug.cgi?id=56281
Bug ID: 56281 Summary: String number converted to ascii value instead of parsed value Product: Wine Version: 9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: francisdb@gmail.com Distribution: ---
cat test.vbs
Dim x x = "0" If IsNumeric(x) Then WScript.Echo "Numeric" Else WScript.Echo "Not Numeric" End If If x > 30 Then WScript.Echo "> 30" Else WScript.Echo "Not > 30" End If
wine cscript test.vbs
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 Numeric
30
Windows
cscript test.vbs
Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved.
Numeric Not > 30
https://bugs.winehq.org/show_bug.cgi?id=56281
--- Comment #1 from francisdb francisdb@gmail.com --- The title is more a guess of what might be going on.
https://bugs.winehq.org/show_bug.cgi?id=56281
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- We are using VarCmp("0",I2 30) and that reports GT, correctly. So probably we should explicitly convert to R8 instead continuing using VarCmp(), or convert both to R8 and compare.
https://bugs.winehq.org/show_bug.cgi?id=56281
francisdb francisdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|String number converted to |vbscript: String number |ascii value instead of |converted to ascii value |parsed value |instead of parsed value