https://bugs.winehq.org/show_bug.cgi?id=54646
Bug ID: 54646 Summary: Entering the minus symbol displays parentheses Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: pascal.legrand@univ-orleans.fr Distribution: ---
Hello, I have been using, for many years, a small personal accounting application developed in Delphi. (I am not the developer) This one worked perfectly via Wine. Since one of the last update I have a display problem. When I enter a negative value in the application, once the entry validated the minus sign (debit) turns into parentheses: Input: -100€ Display: (100€) Do you know where this problem could come from?
Thank you in advance for your help.
https://bugs.winehq.org/show_bug.cgi?id=54646
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- Are you sure this is a bug? Parentheses are a common notation for debit in accounting.
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #2 from Pascal pascal.legrand@univ-orleans.fr --- Hello, thanks for your answer. Not sure that is a bug , The only thing I can say is that before the update, the minus sign "entered" was displayed well and since this update it is no longer displayed.
Before : -100€ after : (100€)
https://bugs.winehq.org/show_bug.cgi?id=54646
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Keywords| |regression
--- Comment #3 from Austin English austinenglish@gmail.com --- Is this software publicly available somewhere?
What version of wine did this work in? When did it break?
It would be super helpful if you could run a regression test: https://wiki.winehq.org/Regression_Testing
that will help us see what change caused this change in your app.
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #4 from Pascal pascal.legrand@univ-orleans.fr --- This software is not publicly available somewhere, but i can give you the executable file to let you see what is the problem.
I'm using it with wine on a debian sid: apt-cache policy wine wine: Installé : 8.0~repack-4 Candidat : 8.0~repack-4 Table de version : *** 8.0~repack-4 500 500 http://deb.debian.org/debian sid/main amd64 Packages 500 http://deb.debian.org/debian sid/main i386 Packages 100 /var/lib/dpkg/status
And, i'm not sure but i think the problem appears since the last update. Tell me if you want the "exe" file.
If you test whit it, here is some information (it's in french):
- When you launch it, as some files are missing you have to validate the error messages concerning the file "COMPTE.CSV", "COMPTEC.CSV", "TIERS.CSV", "CAT.CSV". - Then you should click on "Nouvelle opération". - Put a negative value in the field "Montant en €uros". - Press the TAB key on the keyboard (validate the entry). The value entered "-100,00€" will be transformed into "(100,00€)" which was not the case before the last update Before upgrade, the displayed value was -100,00€
Thanks for your help
https://bugs.winehq.org/show_bug.cgi?id=54646
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #5 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
(In reply to Pascal from comment #4)
This software is not publicly available somewhere, but i can give you the executable file to let you see what is the problem.
Please, don't share proprietary software publicly. To avoid any legal issues, use private means to share it with a developer for individual technical support, or just don't share it and just follow advice/instructions given here.
(In reply to Zeb Figura from comment #1)
Are you sure this is a bug? Parentheses are a common notation for debit in accounting.
This is indeed a valid remark. Both notations are valid negative numbers representation. It looks like it depends on locale, though.
@OP,
Make sure that the application has no negative number notation setting that may have changed for unknown reasons.
How is your locale (environment variables LANG, LC_MONETARY, LC_NUMERIC) configured?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #6 from Zeb Figura z.figura12@gmail.com --- It's also possible that the previous behaviour was a bug, and something in Wine changed to fix it.
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #7 from Pascal pascal.legrand@univ-orleans.fr --- Hello, thanks for your answers. I will check locales configuration. Just for information, when i use this app on a "windows computer", it works fine. Minus symbol are well displayed.
Thanks again
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #8 from Rafał Mużyło galtgendo@o2.pl --- Maybe rather than a bug, it's simply something Windows doesn't do ?
LC_MONETARY n_sign_posn with a value 0 gives parentheses, values 1/3 give preceding minus. There's a chance Windows (or at least this program) doesn't apply this value or they differ between Windows and Linux.
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #9 from Pascal pascal.legrand@univ-orleans.fr --- Hello, I don't feel like the locals have been changed lately. What should be the value for monetary to show the minus sign? Thanks
https://bugs.winehq.org/show_bug.cgi?id=54646
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #10 from Alex Henrie alexhenrie24@gmail.com --- If you know that the application was developed in Delphi, does that mean that you have the source code? Could you find the function call that is responsible for adding the parentheses and tell us which Windows API function it is?
As Austin pointed out, a regression test with `git bisect` would also be extremely helpful.
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #11 from Pascal pascal.legrand@univ-orleans.fr --- I am not the developer of this program and I do not have the source code for it.
Concerning the regression test with `git bisect` I don't really feel able to do this kind of manipulation.
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #12 from Ken Sharp imwellcushtymelike@gmail.com --- Does this still occur in Wine 9.8 or later?
https://bugs.winehq.org/show_bug.cgi?id=54646
--- Comment #13 from Pascal pascal.legrand@univ-orleans.fr --- Hello, I can't say for sure that this is a bug. As "Zeb Figura" says: Parentheses are a common notation for debit in accounting.
For the moment I'm using wine version 9.0 on a debbian SID and it's currently the only one available
apt-cache policy wine wine: Installed: 9.0~repack-4 Candidate: 9.0~repack-4
Thanks for your answer. Pascal