Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 535 - Internationalization Regional Setting other than English Causes 1000 times error in Italian and crashes in French
Summary: Internationalization Regional Setting other than English Causes 1000 times er...
Status: RESOLVED NOTABUG
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: iOS (show other bugs)
Version: unspecified
Hardware: Macintosh Mac OS
: High blocker
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-15 04:06 EST by matt_processnet
Modified: 2014-01-15 05:14 EST (History)
2 users (show)

See Also:
Chart Series: Line
Delphi / C++ Builder RAD IDE Version:


Attachments
Canada vs Italy Regional Difference (200.27 KB, image/png)
2014-01-15 04:06 EST, matt_processnet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matt_processnet 2014-01-15 04:06:43 EST
Created attachment 68 [details]
Canada vs Italy Regional Difference

Using the TeeChartNETMonoTouchEvaluation_4_13_11_11.zip and its dll for Xamarin.IOS development 4.13.11.11 causes a big bug, let me explain.

IOS has the internationalization section, if the regional setting is anything other than english problems arise.

Behavior, somehow the graph is tied to the keymapping of the regional language
If the keyboard of the region setting has , and . in the same place it will display but with a factor of 1000 difference. In Europe "," is the decimal point.
So it seems the graph takes a value of say 0.006 which due to the regional setting gets converted to a string as 0,006 and is displayed as a 6.0 1.0 as 1000 etc.

Now if this was not weird enough if you change the regional setting to French where the keys "." and "," are in a completely different place on the keyboard, the line graph crashes as I imagine it cannot find either the comma or the period and crashes the application.

Please fix this, thank you.
Matt
Comment 1 matt_processnet 2014-01-15 04:40:38 EST
Possibly you might use this code to help you.

// To detect the region setting
var userLang = NSLocale.CurrentLocale.LocaleIdentifier; 

// Detect "." or ","
String dSeperator = NSLocale.CurrentLocale.DecimalSeparator; 

:)
Comment 2 matt_processnet 2014-01-15 05:07:52 EST
It appears the bug is on my side as well. Or maybe totally on my side.
Double.Parse( myString); is culture aware and crashes with french keyboard
Double.Parse(myString, CultureInfo.InvarientCulture); works correctly does not crash and produces a correct graph without problems or 1000 offsets and in Italian. 

So my bad sorry to get you guys all worked up!