http://bugs.winehq.org/show_bug.cgi?id=19751
Summary: VB6 format function Product: Wine Version: 1.1.27 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: hub_hotmail@hotmail.com
THIS IS A VB6 PROGRAM
WINDOWS --------- FormatoBr = "#,##0.00" debug.print Format(TxtValorCadTituloNUM, FormatoBr), , "ONLY_FORMAT" = 1,00 debug.print Format(CCur(TxtValorCadTituloNUM), FormatoBr), , "FORMAT_WITH_CCUR" = 1,00
*****************************************************************************
wine LINUX ---------- FormatoBr = "#,##0.00" debug.print Format(TxtValorCadTituloNUM, FormatoBr), , "ONLY_FORMAT" = 100,00 debug.print Format(CCur(TxtValorCadTituloNUM), FormatoBr), , "FORMAT_WITH_CCUR" = 1,00
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #1 from Hub hub_hotmail@hotmail.com 2009-08-16 10:40:33 --- Created an attachment (id=23114) --> (http://bugs.winehq.org/attachment.cgi?id=23114) source and executable VB6
http://bugs.winehq.org/show_bug.cgi?id=19751
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |nerv@dawncrow.de Ever Confirmed|0 |1
--- Comment #2 from André H. nerv@dawncrow.de 2009-08-17 11:38:42 --- confirming
http://bugs.winehq.org/show_bug.cgi?id=19751
Hub hub_hotmail@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P5 Severity|normal |blocker
http://bugs.winehq.org/show_bug.cgi?id=19751
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |P2 Alias|format | Severity|blocker |normal
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-10-25 14:00:29 --- Read definitions of severity levels: http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #4 from André H. nerv@dawncrow.de 2010-01-26 12:50:08 --- dup of Bug 18073 ?
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #5 from Hub hub_hotmail@hotmail.com 2010-01-29 06:50:39 --- (In reply to comment #4)
dup of Bug 18073 ?
I think so, has it been fixed?
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #6 from André H. nerv@dawncrow.de 2010-01-29 10:38:29 --- no, your exe still pops up 100,00 and 1,00
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #7 from Hub hub_hotmail@hotmail.com 2010-02-12 08:13:34 --- (In reply to comment #6) can you help to resolve this problem?
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #8 from André H. nerv@dawncrow.de 2010-02-12 08:23:45 --- yes, i will work on that maybe
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #9 from André H. nerv@dawncrow.de 2010-02-24 11:56:38 --- This bug looks kinda hard, wine generates a value(pad) which indicates how to move the value it gets. If you force it to zero it the bug disapears but it breaks other tests, but i cant see the relevant difference between the tests and your case to make condition for it.
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #10 from Hub hub_hotmail@hotmail.com 2010-02-28 08:05:17 --- (In reply to comment #9) please help me, what's part of wine's code that I can change to resolve this
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #11 from André H. nerv@dawncrow.de 2010-02-28 12:28:11 --- (In reply to comment #10)
(In reply to comment #9) please help me, what's part of wine's code that I can change to resolve this
in dlls/oleaut32/varformat.c function VARIANT_FormatNumber see the way the variable "pad" is used around line 1280, if you force it to zero after theses blocks(maybe later in the if (numHeader->flags & FMT_FLAG_THOUSANDS) statement) your case works but breaks others.
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #12 from Hub hub_hotmail@hotmail.com 2010-02-28 13:33:56 --- thanks
http://bugs.winehq.org/show_bug.cgi?id=19751
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com 2011-08-21 00:49:48 CDT --- Still present in 1.3.26.
http://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com 2012-05-03 20:57:19 CDT --- Still present in wine 1.5.3.
http://bugs.winehq.org/show_bug.cgi?id=19751
german_ant_82@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |33037
http://bugs.winehq.org/show_bug.cgi?id=19751
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on|33037 |
https://bugs.winehq.org/show_bug.cgi?id=19751
--- Comment #15 from Bruno Jesus 00cpxxx@gmail.com --- Still in 1.7.34.
https://bugs.winehq.org/show_bug.cgi?id=19751
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #16 from Damjan Jovanovic damjan.jov@gmail.com ---
From the words used in your source code, it seems you are Portuguese.
export LANG=en_US.UTF-8 wine Project1.exe gives 100.00 and 100.00
export LANG=pt_PT.UTF-8 wine Project1.exe gives 1,00 and 1,00
Hub, what locale are you using, and is it the same between Windows and Linux?