[Bug 31618] Waterboy 1.0 (VB5 game) fails on startup, claiming "Run-time error '13': Type mismatch" (VarParseNumFromStr with invalid number string)

WineHQ Bugzilla wine-bugs at winehq.org
Sun Jul 11 14:18:33 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=31618

François Gouget <fgouget at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|wine-bugs at winehq.org        |fgouget at codeweavers.com
                 CC|                            |fgouget at codeweavers.com

--- Comment #15 from François Gouget <fgouget at codeweavers.com> ---
* In French the thousands separator is a non-breaking space.
* When sThousand is a non-breaking space, regular spaces are also treated as
thousands separators.
* Furthermore VarParseNumFromStr() does not require thousands separators to
follow a neat three digits pattern. So in English "1,000" is handled the same
as "100,0" or even ",10,,00", etc.
See where this is going?

In French, when parsed with NUMPRS_THOUSANDS, " 10 6" is identical to "106".
(and in English ",10,6" == "106")
I will send a patch shortly.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list