AnantLabs / googlechartsharp

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

Internal Text Formatting Invalid in German Culture #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add the following sequence to a char: new [] { 1.5 } and switch the 
currentculture to "DE-de". You will get two datapoints because then umber 1.5 
gets encoded as 1,5.

The fix for this is to find all places where you convert a number (int or 
double) to a string and do it like this: 
1.5.ToString(CultureInfo.InvariantCulture)

You also need to find places where ints are converted because users can 
configure custom integer formatting in their windows and add 
thousands-separators and the like.

Original issue reported on code.google.com by marvin.s...@googlemail.com on 30 Jan 2012 at 12:51