Problem with currency formatting specification.

Description

The link here:

http://unicode.org/repos/cldr/trunk/specs/ldml/tr35-numbers.html#Special_Pattern_Characters

Explains that for en_US single currency symbol means $; double currency symbol is; USD; triple currency symbol is "US Dollar" where currency symbol is U+00A4.

Consider the following pattern:

Parsing this is non deterministic given the definition in the spec. If formatting 57.35 this could be either

USDUSD 57.35

or

US Dollars$ 57.35

or

$$$$ 57.35

etc.

depending on if parsing treats the pattern as two double currency symbols or a triple currency symbol followed by a single currency symbol or four single currency symbols.

If we were to decide that the parser should be greedy then it becomes impossible to depict "USDUSD" or "$US Dollar" or even "$$$$"

xpath

None

locale

None

Activity

Show:
TracBot
May 10, 2019, 12:28 AM
Trac Comment 1 by —2015-04-10T07:40:04.551Z

I don't think we ever wanted to do formats like USDUSD5.

I think we should just document that more than 3 ¤ characters is reserved.

We could allow multiple sequences, I suppose, like

¤ 0.00 ¤¤

for

$ 123.45 USD.

TracBot
May 10, 2019, 12:28 AM
Trac Comment 5 by —2015-04-24T15:56:12.799Z

Indicate that field lengths beyond spec values are invalid, for this and for date formats

TracBot
May 10, 2019, 12:28 AM
Trac Comment 8 by —2015-05-13T17:15:38.487Z

\See also : and :

TracBot
May 10, 2019, 12:28 AM
Trac Comment 10 by —2015-09-03T14:07:49.690Z

John's going on vacation, so taking.

TracBot
May 10, 2019, 12:28 AM
Trac Comment 11 by —2015-09-03T15:20:59.256Z

Dup of

Priority

medium

Assignee

Mark Davis

Reporter

TracBot

Reviewer

None

Labels

None

Components

Fix versions

Phase

None