Currency symbol spacing in XML differs from sample data in CLDR spec

Description

Hi ICU Support team,

As per the CLDR currency format space insertion spec, it is ‘insert space in format if the character next to digit is a letter :L: ’, though the library implements it as ‘insert space in format if character next to digit is not a symbol :^S: '.

CLDR spec:

This results in differing behavior for a case such as unknown currency XXX, with the currency symbol '***'.
Here the character '*' is neither a symbol :S: nor a letter :L:, which results in:
Expected behavior as per spec = 123.12***
Output as per ICU4J library = 123.12 ***

Is this the intended behavior for this special case? If so should this be called out in the code/CLDR or should the CLDR spec be updated to :^S:?

Sample code to reproduce issue:

OUTPUT:

Regards,
Prithvi

xpath

None

locale

None

Assignee

Peter Edberg

Reporter

Prithvi Shah

Labels

None

tracReporter

None

tracOwner

None

tracResolution

None

tracStatus

None

Reviewer

Shane Carr

phase

spec-beta

tracCc

None

tracCreated

None

Components

Fix versions

Priority

medium
Configure