New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 739812 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug


Participants' hotlists:
Payment-Conversion


Sign in to add a comment

[Payments] For some locales, currency formatting is unexpected

Project Member Reported by ma...@chromium.org, Jul 6 2017

Issue description

1. Set phone to English (Australia)
2. go to https://rsolomakhin.github.io/pr

Expected
USD $55.00

Actual
USD 55.00
 

Comment 1 by ma...@chromium.org, Jul 6 2017

Cc: rouslan@chromium.org gogerald@chromium.org
Good find!

Comment 3 by ma...@chromium.org, Jul 6 2017

Cc: zkoch@chromium.org
Did we strip the "$" overzealously in https://cs.chromium.org/chromium/src/components/payments/core/currency_formatter.cc?rcl=9da63a8364a4cdec18db79b537ac819d29dd4284&l=107 or is it actually absent? If latter, then this is WontFix.

Comment 5 by ma...@chromium.org, Jul 6 2017

Guessing the latter, but I want to understand why ICU would do this by testing a few locales first.

Comment 6 by ma...@chromium.org, Sep 21 2017

Status: Started (was: Assigned)
The ICU data is explicitely dictating to strip the currency symbol of quite a few currencies in the en_AU locale:

https://cs.chromium.org/chromium/src/third_party/icu/source/data/curr/en_AU.txt?type=cs
Project Member

Comment 7 by bugdroid1@chromium.org, Sep 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/53d37500e78aa4a089696e429bd11a77530c7b30

commit 53d37500e78aa4a089696e429bd11a77530c7b30
Author: Mathieu Perreault <mathp@chromium.org>
Date: Thu Sep 21 16:26:08 2017

[Payments] Document some oddities about currency formatting in en_AU

Bug:  739812 
Test: components_unittests
Change-Id: Ie833a4450adc0872cba139b90db1f51df67be37e
Reviewed-on: https://chromium-review.googlesource.com/676661
Commit-Queue: Mathieu Perreault <mathp@chromium.org>
Commit-Queue: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Reviewed-by: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#503465}
[modify] https://crrev.com/53d37500e78aa4a089696e429bd11a77530c7b30/components/payments/core/currency_formatter_unittest.cc

Comment 8 by ma...@chromium.org, Sep 21 2017

Status: Fixed (was: Started)

Sign in to add a comment