From: Brayan Khosravian <35541212+BrayanKhosravian@users.noreply.github.com> Date: Thu, 22 Aug 2019 13:12:34 +0000 (+0200) Subject: - Issue 7207 - if current culture of the current thread is not set to the invariant... X-Git-Tag: accepted/tizen/5.5/unified/20200421.150457~238 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0f8daf17054f8bfa5d95e65b766829287413618;p=platform%2Fcore%2Fcsapi%2Fxsf.git - Issue 7207 - if current culture of the current thread is not set to the invariant culture then initializing the app causes a "NUnit.Framework.InconclusiveException" with the exception- message "App did not start for some reason. System.Argument.Exception: 1 is not supported code page. Parameter name: codepage." (#7228) * - Issue 7207 - if current culture of the current thread is not set to the invariant culture then initializing the app causes a "NUnit.Framework.InconclusiveException" with the exception- message "App did not start for some reason. System.Argument.Exception: 1 is not supported code page. Parameter name: codepage." * - fixed usings --- diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs index 6f54b9a..e8ad6d1 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs @@ -217,6 +217,13 @@ namespace Xamarin.Forms.Controls IApp runningApp = null; try { + // Issue 7207 - if current culture of the current thread is not set to the invariant culture + // then initializing the app causes a "NUnit.Framework.InconclusiveException" with the exception- + // message "App did not start for some reason. System.Argument.Exception: 1 is not supported code page. + // Parameter name: codepage." + if(System.Threading.Thread.CurrentThread.CurrentCulture != System.Globalization.CultureInfo.InvariantCulture) + System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; + runningApp = InitializeApp(); } catch (Exception e)