vnkmr7620 / kojo

Automatically exported from code.google.com/p/kojo
Other
0 stars 0 forks source link

Point toString locale confusing comma sign in Swedish #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. change language to Swedish
2. println(position)
3. Output is Point(-0,00 , 0,00)

What is the expected output? 
Point(-0.00 , 0.00)
What do you see instead?
Point(-0,00 , 0,00)

Swedish comma sign is used in decimal numbers, but NOT when programming...

What version of the product are you using? On what operating system?
Windows Kojo Beta-110412-1

Suggested solution:
Remove locale printing in toString of Point

/Bjorn Regnell

Original issue reported on code.google.com by bjorn.regnell@gmail.com on 15 Apr 2012 at 12:10

GoogleCodeExporter commented 9 years ago
I thought we had decided to live with this, given that it applies not only to 
Points but to many other classes. Right?

We introduced the extra space in the middle to make it easier to decrease 
confusion between the decimal point separator and the separator between two 
numbers.

Original comment by pant.la...@gmail.com on 29 Apr 2012 at 4:42

GoogleCodeExporter commented 9 years ago
Yes, but I thought that as Points are especially important and often returned 
and printed etc. we might do a limite fix that only helps the Point toString 
and leave the rest. (I have seen confusion on Points in particular as a point 
is a pair, so it is most important here...)
/Bjorn

Original comment by bjorn.regnell@gmail.com on 29 Apr 2012 at 11:59