{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2008","repository_url":"https://api.github.com/repos/xamarin/Xamarin.Forms","labels_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2008/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2008/comments","events_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2008/events","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/2008","id":301969133,"number":2008,"title":"Application crashes when executing a parse statement in PCL","user":{"login":"nesh746","id":14335230,"avatar_url":"https://avatars0.githubusercontent.com/u/14335230?v=4","gravatar_id":"","url":"https://api.github.com/users/nesh746","html_url":"https://github.com/nesh746","followers_url":"https://api.github.com/users/nesh746/followers","following_url":"https://api.github.com/users/nesh746/following{/other_user}","gists_url":"https://api.github.com/users/nesh746/gists{/gist_id}","starred_url":"https://api.github.com/users/nesh746/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesh746/subscriptions","organizations_url":"https://api.github.com/users/nesh746/orgs","repos_url":"https://api.github.com/users/nesh746/repos","events_url":"https://api.github.com/users/nesh746/events{/privacy}","received_events_url":"https://api.github.com/users/nesh746/received_events","type":"User","site_admin":false},"labels":[{"id":771881931,"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/labels/s/needs-info","name":"s/needs-info","color":"fcb95a","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-03T04:56:37Z","updated_at":"2018-03-08T19:15:54Z","closed_at":"2018-03-08T19:15:54Z","author_association":"NONE","body":"Consider the following statement somewhere in PCL project:\r\n\r\ndouble val = double.Parse(\"0.1233\");\r\n\r\nThis statement successfully executes in all Android physical devices (Tried different OS versions). The same statement also gets executed successfully on many of iPhone and iPad physical devices. However this statement is making the app to crash for a particular iOS device for me when it works fine in all other phones and tablets.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a sample xamarin.forms project and add that parse statement mentioned as above in PCL which should get executed when the app is run.\r\n2. Run the application.\r\n3. Observe the application.\r\n\r\n### Expected Behavior\r\n\r\nThe statement should get executed without causing any error.\r\n\r\n### Actual Behavior\r\n\r\nstatement is making the app to crash for a particular iOS device only.\r\n\r\n### Basic Information\r\n\r\n- Version with issue: latest stable xamarin forms nuget package\r\n  - iOS:  SDK version 10.2 is used to compile the code.\r\n\r\n- Affected Devices:\r\n\r\niPhone X with iOS version 11.1.2"},"comment":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/comments/371592980","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/2008#issuecomment-371592980","issue_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/2008","id":371592980,"user":{"login":"hartez","id":538025,"avatar_url":"https://avatars0.githubusercontent.com/u/538025?v=4","gravatar_id":"","url":"https://api.github.com/users/hartez","html_url":"https://github.com/hartez","followers_url":"https://api.github.com/users/hartez/followers","following_url":"https://api.github.com/users/hartez/following{/other_user}","gists_url":"https://api.github.com/users/hartez/gists{/gist_id}","starred_url":"https://api.github.com/users/hartez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartez/subscriptions","organizations_url":"https://api.github.com/users/hartez/orgs","repos_url":"https://api.github.com/users/hartez/repos","events_url":"https://api.github.com/users/hartez/events{/privacy}","received_events_url":"https://api.github.com/users/hartez/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T19:15:54Z","updated_at":"2018-03-08T19:15:54Z","author_association":"MEMBER","body":"@nesh746 If you want to parse independent of the current culture (i.e., if you want to always assume \"0.1233\" rather than \"0,1233\"), then you should use InvariantCulture as Stephane suggests.\r\n\r\n`double val = double.Parse(\"0.1233\", CultureInfo.InvariantCulture);`"}}
{"actor":{"display_login":"hartez"}}