lykrsl / googlechartsharp

Automatically exported from code.google.com/p/googlechartsharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal Text Formatting Invalid in German Culture

GoogleCodeExporter opened this issue · comments

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