[Bug 23781] New: Parsing of money amount in "BNC Express" ignores decimal separator
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Jul 24 16:55:38 CDT 2010
Summary: Parsing of money amount in "BNC Express" ignores
OS/Version: Mac OS X 10.6
AssignedTo: wine-bugs at winehq.org
ReportedBy: pierre.guerrier at m4x.org
CC: pierre.guerrier at m4x.org
Created an attachment (id=29819)
Screenshot of buggy input field
I have been trying to run the "BNC Express" program in CrossOver Pro for Mac
(commercial product based on wine by CodeWeavers, and per the CrossOver support
opinion, the bug below belongs to wine. What follows is an updated repost of
the ticket in the CodeWeaver DB:
Quick context: BNC Express is an accounting program for the self-employed,
generating income reports validated by the french IRS, quite popular I think in
France. It looks like a VB program, publisher website here
http://www.trefle-rouge.com/ - all in french I'm afraid.
The GUI is generally OK, but there is a nasty bug whenever inputting a monies
amount in the program (which of course, happens quite a lot). You are supposed
to type in, say "45,34" (for 45 euros and 34 cents). The part after the
separator is optional. In any case, the software will the normalize the input
and turn it into "45,00" e.g. if you just entered "45". The bug is that it
misses out the separator in Wine/CrossOver. So "45,34" turns into "4534,00".
I have not found anything similar in the ticket database (neither codeweaver or
winehq) or on web. I did try to change the sDecimal and sMonDecimal values in
the Registry (seen another ticket for a VB app that was solved this way). This
DOES change the separator used when re-displaying the normalized amount
(display is set by sDecimal). But it does not change the buggy behavior of
ignoring the separator when parsing the input (it is not possible to input
anything other than numbers and , and . in monies field, the program filters it
and turns "." into "," immediately upon typing - this is an expected behavior,
same as windows).
(this is not a locale problem, the windows environment did inherit the french
locale of the Mac system all right)
When looking further, I found some vaguely reminiscent stuff on winehq, for
(except the bug seems to be on parsing, not on output format)
There is a freely downloadable demo version on the TrefleRouge website above
(or I can e-mail it you if you can't find your way in the french website).
Launching the demo, loading the sample balance sheet takes you to the main
screen which is simply bill/receipts input, and the bug shows up immediately. I
have attached a screenshot of this screen with the problem highlighted.
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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