May 4, 2026
4:38 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 -- v4: vbscript/tests: Cover non-literal numeric vs whitespace-only BSTR. https://gitlab.winehq.org/wine/wine/-/merge_requests/10818