Modify

Opened 12 years ago

Closed 12 years ago

#3494 closed defect (fixed)

shift+d form should be accept coma as well as dots

Reported by: Bürste Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

shift+d form should be accept coma as well as dots and remove spaces and other not printable signs for itself.

Attachments (0)

Change History (5)

comment:1 Changed 12 years ago by Gubaer

Resolution: fixed
Status: newclosed

Fixed in r2531. Except for the request of accepting "," in place of "." too, it doesn't make sense IMHO.

comment:2 Changed 12 years ago by Bürste

Resolution: fixed
Status: closedreopened

@Gubaer
Why? it's normal to split the values via "," in Germany, so if you use it with German translation you have to enter English values. This doesn't make sense.

comment:3 Changed 12 years ago by stoecker

Because we everywhere else request values with "." as separator as well?

comment:4 in reply to:  3 Changed 12 years ago by Gubaer

Replying to stoecker:

Because we everywhere else request values with "." as separator as well?

Yes, that's what I was thinking too. And I didn't want to introduce locale specific formatting requests on the fly because what might work for a german user might lead to problems in other locales.

But Bürste has a point. We can be less restrictive on the input format. One step ahead would be to replace parsing with Double.parseDouble by the respective parsing methods in NumberFormat. The later take locale specific formatting rules (i.e. commata as separator in the german locale) into account.

I'm working on it.

comment:5 Changed 12 years ago by Gubaer

Resolution: fixed
Status: reopenedclosed

(In [2543]) fixed #3494: shift+d form should be accept coma as well as dots

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.