You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2024/01/16 20:03:00 UTC

[jira] [Resolved] (DAFFODIL-2871) No way to pad after affix if positive pattern does not have an affix in textNumberPattern

     [ https://issues.apache.org/jira/browse/DAFFODIL-2871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Lawrence resolved DAFFODIL-2871.
--------------------------------------
    Resolution: Fixed

Fixed in commit cdb41212d755c45f23f981c395dd24ab56303b45

> No way to pad after affix if positive pattern does not have an affix in textNumberPattern
> -----------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2871
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2871
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>    Affects Versions: 3.6.0
>            Reporter: Steve Lawrence
>            Assignee: Steve Lawrence
>            Priority: Major
>             Fix For: 3.7.0
>
>
> ICU only uses the positive pattern of the textNumberPattern property to determine pad character and position, completely ignoring the negative pattern. If the positive pattern has no affix associated with the pad character, then there is an ambiguity if the pad character should appear before or after the negative affix when unparsing negative numbers. In this case, ICU defaults to before the affix, with no way to change it via the pattern. This effectively means it is not possible for ICU number padding to appear after a negative affix if there is no positive affix.
> We need a way to specify that ICU pad characters should apper after an affix if the positive pattern does not have an affix.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)