![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Internationalization Regional Setting other than English Causes 1000 times error in Italian and crashes in French | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | matt_processnet <matthew.moitra> |
| Component: | iOS | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | blocker | CC: | pep, yeray |
| Priority: | High | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS | ||
| Chart Series: | Line | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | Canada vs Italy Regional Difference | ||
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; :) 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! |
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