6.2.2.91 LSCurrencyFormat wraps negative values in brackets

<cfscript>
    dump(LSCurrencyFormat(-1, 'none', 'de_DE'));
</cfscript>```

It seems that this comes from Lucee 7, Lucee 5 just outputs negative values

I tested this with Lucee version 6.2.3.16-SNAPSHOT and it returns the same result. This is a regression from Lucee version 6.1.0.44-SNAPSHOT, and it occurs after the fix for
Issue navigator - Lucee.

@gunnar.lieb , Only the US locale shows negative currency values in brackets. Please create a new ticket for this

Thanks for checking @cfmitrah , here is the ticket, but please see my example, at least this returned a negative value in Lucee 5

https://luceeserver.atlassian.net/browse/LDEV-5769

It’s more due changing the underlying java version

I did this for 7, which add a boolean flag useBrackets

might backport it to 6

https://luceeserver.atlassian.net/browse/LDEV-5483

flag would be fine, the change broke our app, I had to replace lscurrencyformat… adding an additional argument would be more handy

backported to 6.2.3.19-SNAPSHOT

1 Like