yggdrasildy opened a new issue, #15714:
URL: https://github.com/apache/grails-core/issues/15714

   ### Expected Behavior
   
   The solution provided by this issue 
https://github.com/apache/grails-core/issues/15178 did not quite do the trick. 
   
   Still not easy to entering negative numbers for both Long and BigDecimal 
fields.
   
   ### Actual Behaviour
   
   I did locate the issue of the issue to LocaleAwareNumberConverter. The 
convert method uses NumberFormat(Locale), and there are a few locale's that 
does not use '-' as minusSign. So then numberFormat.parse fails when there is a 
minusSign other than the one given by by the numberFormat.
   
   If you find that the solution described in the example application is the 
way to solve the issue, I can try to create a pull request.
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment Information
   
   - Ubuntu 24.04
   - java 17.0.17
   - Grails 7.1.1
   - browser with nb-no locale, same on firefox and chrome
   
   ### Example Application
   
   https://github.com/yggdrasildy/negativenumbers_7_1_1
   
   ### Version
   
   7.1.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to