http://bugs.winehq.org/show_bug.cgi?id=23781
Summary: Parsing of money amount in "BNC Express" ignores decimal separator Product: Wine Version: unspecified Platform: x86-64 OS/Version: Mac OS X 10.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: pierre.guerrier@m4x.org CC: pierre.guerrier@m4x.org
Created an attachment (id=29819) --> (http://bugs.winehq.org/attachment.cgi?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: http://www.codeweavers.fr/support/tickets/browse/?ticket_id=809692 )
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 instance: http://bugs.winehq.org/show_bug.cgi?id=10765 (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.
http://bugs.winehq.org/show_bug.cgi?id=23781
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|pierre.guerrier@m4x.org |
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2010-07-25 01:23:31 --- Please specify the Wine version you are using (in the Version field above).
http://bugs.winehq.org/show_bug.cgi?id=23781
Pierre Guerrier pierre.guerrier@m4x.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.1.34
--- Comment #2 from Pierre Guerrier pierre.guerrier@m4x.org 2010-07-25 06:08:26 --- Wine version now specified as 1.1.34. This is the version bundled inside CodeWeaver's CrossOver Pro for Mac, v9.0.1.
http://bugs.winehq.org/show_bug.cgi?id=23781
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
--- Comment #3 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-07-25 12:56:25 --- does using native oleaut32 change anything?
http://bugs.winehq.org/show_bug.cgi?id=23781
--- Comment #4 from Pierre Guerrier pierre.guerrier@m4x.org 2010-07-25 13:30:59 --- Yes: with "native", program no longer starts. It does start with "native, then builtin", but with still the same bug.
http://bugs.winehq.org/show_bug.cgi?id=23781
--- Comment #5 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-07-25 13:33:50 --- (In reply to comment #4)
Yes: with "native", program no longer starts.
Did you add a native oleaut32? (winetricks mfc42 is enough to to so)
http://bugs.winehq.org/show_bug.cgi?id=23781
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #6 from Austin English austinenglish@gmail.com 2010-07-25 23:33:15 --- http://www.trefle-rouge.com/_private/BNCX7.exe
Seems okay for me in wine-1.2-423-g1f92dd3, with an english locale. I tried entering amounts as '123.45' and '123,45'. Both worked fine.
http://bugs.winehq.org/show_bug.cgi?id=23781
Pierre Guerrier pierre.guerrier@m4x.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.1.34 |1.2
--- Comment #7 from Pierre Guerrier pierre.guerrier@m4x.org 2010-07-28 14:27:50 --- I've just upgraded crossover 9.1.0 which includes wine 1.2 The bug is still here, whether in french or english locale. Have you added another trick to your wine configuration to make it work ?
http://bugs.winehq.org/show_bug.cgi?id=23781
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.2 |1.1.34
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com 2010-07-28 14:30:55 --- Don't change original version field value.
http://bugs.winehq.org/show_bug.cgi?id=23781
--- Comment #9 from Austin English austinenglish@gmail.com 2010-07-28 14:43:04 --- (In reply to comment #7)
I've just upgraded crossover 9.1.0 which includes wine 1.2 The bug is still here, whether in french or english locale. Have you added another trick to your wine configuration to make it work ?
No, just plain wine and a fresh WINEPREFIX.
http://bugs.winehq.org/show_bug.cgi?id=23781
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.trefle-rouge.com | |/_private/BNCX7.exe
--- Comment #10 from Andrew Nguyen arethusa26@gmail.com 2010-08-11 11:44:13 --- I do see the formatting problem in wine-1.3.0-166-g277040d when I set LC_ALL=fr_FR.utf8 when launching the program.
http://bugs.winehq.org/show_bug.cgi?id=23781
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #11 from Andrew Nguyen arethusa26@gmail.com 2010-08-11 11:44:30 --- I forgot to confirm the bug.
http://bugs.winehq.org/show_bug.cgi?id=23781
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Mac OS X 10.6 |Mac OS X
http://bugs.winehq.org/show_bug.cgi?id=23781
PierreM mazeinp@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mazeinp@free.fr
--- Comment #12 from PierreM mazeinp@free.fr 2013-10-30 08:56:29 CDT --- The bug is still present with actual version of BNC express 7.12e and wine 1.7.5
I just add that each time the input field losts the focus, two more zeros are added to the balance number (cf. screenshot), even if the filed value has not been modified.
https://bugs.winehq.org/show_bug.cgi?id=23781
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #13 from joaopa jeremielapuree@yahoo.fr --- Created attachment 71589 --> https://bugs.winehq.org/attachment.cgi?id=71589 Screenshot showing the issue is fixed.
Bug is fixed in wine-7.0-rc5. Note that my locale are french, this one showing the problem.
Download link: https://web.archive.org/web/20061231004200if_/http://www.trefle-rouge.com:80...
Can an administrator close this bug as FIXED?