May 4, 2026
10:52 p.m.
Native VBScript treats a whitespace-only BSTR (e.g. Space(N)) as larger than any numeric in BSTR-vs-numeric comparison, regardless of binary lex order. Wine's CStr-coerce path goes through VarCmp's binary order and gets the opposite result for single-digit numerics, breaking the practical Left(str, n) guard pattern Len(str) > Space(n). continuation of !10775 -- v6: vbscript: Treat all-whitespace and control-char BSTR as greater than numeric. vbscript/tests: Cover non-literal numeric vs whitespace-only and control-char BSTR. https://gitlab.winehq.org/wine/wine/-/merge_requests/10818