[
https://issues.apache.org/jira/browse/DAFFODIL-2859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-2859.
-----------------------------------
Closing per dev team as "Won't fix" due working per the DFDL Spec.
> dfdl:textNumberFormat "#.##" unparses 0.12 as "0.12" but should be ".12"
> ------------------------------------------------------------------------
>
> Key: DAFFODIL-2859
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2859
> Project: Daffodil
> Issue Type: Bug
> Components: ICU
> Affects Versions: 3.5.0
> Reporter: Mike Beckerle
> Assignee: Mike Beckerle
> Priority: Minor
> Fix For: 3.6.0
>
>
> Due to ICU bug
>
> [https://unicode-org.atlassian.net/browse/ICU-22558]
>
> dfdl:textNumberPattern strings with # only, and no digits before the decimal
> point still end up creating a 0 digit before the decimal point.
>
> For example "#.##" should format 0.12 as ".12" without a leading zero.
>
> This could be worked around in daffodil code by detecting when to call the
> `DecimalFormat.setMinimumIntegerDigits(0)` on the number format object.
> This requires a minor analysis of the ICU number pattern.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)