-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/financial#166 Fix for inconsistency around currency symbol #19680
Conversation
(Standard links)
|
I can confirm that this resolves the issue in my environment. I'm not sure what all is relevant here - but I'm using PHP 7.3 on Ubuntu with the Sury Ondrej repos with php-intl installed (via the repo). |
@seamuslee001 @mattwire @monishdeb - looks promising Thanks @MegaphoneJon - I didn't have the problem & it still works. You did & this fixes so it seems at least better! |
I couldn't replicate the original issue with the symbol, but noting that in some locales |
@eileenmcnaughton can you pls rebase |
From https://lab.civicrm.org/dev/financial/-/issues/166 we learn that the existing code (tested via testFormatLocaleNumericRoundedByCurrency) is not consistent across all platforms. I think this may be
@colemanw done |
Test fails un related |
Overview
Potential fix for inconsistencies around money handling in code that should not display a currency symbol
Before
On some (most?) installs
returns 20.45 or 20,45 depending on the locale
But on others appears to return $20.45
After
Hopefully it's more consistent (pending response from @MegaphoneJon & @larssandergreen )
Technical Details
From https://lab.civicrm.org/dev/financial/-/issues/166 we learn that the existing code
(tested via testFormatLocaleNumericRoundedByCurrency) is not consistent across
all platforms. I think this may be
Comments