May 14, 2026
3:39 p.m.
Native cscript accepts &O0, &O17, &O177777, etc. as octal integer literals. Wine was emitting err 1002 (syntax error) for any &O prefix because the lexer only recognised &H. Add an oct_to_int helper and parse_oct_literal mirroring parse_hex_literal, allowing up to 32-bit values; overflow checks use an ULONGLONG accumulator since 11-digit octal can exceed 32 bits. -- v2: vbscript: Parse octal numeric literals (&O...). vbscript/tests: Add tests for octal numeric literals. https://gitlab.winehq.org/wine/wine/-/merge_requests/10900