-Fixed camelcase culture bug
This commit is contained in:
@@ -75,4 +75,4 @@ using System.Security;
|
|||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
|
|
||||||
[assembly: AssemblyVersion("6.0.0.0")]
|
[assembly: AssemblyVersion("6.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("6.0.5.17706")]
|
[assembly: AssemblyFileVersion("6.0.5.17707")]
|
||||||
|
|||||||
@@ -120,9 +120,11 @@ namespace Newtonsoft.Json.Tests
|
|||||||
[SetUp]
|
[SetUp]
|
||||||
protected void TestSetup()
|
protected void TestSetup()
|
||||||
{
|
{
|
||||||
//CultureInfo turkey = CultureInfo.CreateSpecificCulture("tr");
|
//#if !NETFX_CORE
|
||||||
//Thread.CurrentThread.CurrentCulture = turkey;
|
// CultureInfo turkey = CultureInfo.CreateSpecificCulture("tr");
|
||||||
//Thread.CurrentThread.CurrentUICulture = turkey;
|
// Thread.CurrentThread.CurrentCulture = turkey;
|
||||||
|
// Thread.CurrentThread.CurrentUICulture = turkey;
|
||||||
|
//#endif
|
||||||
|
|
||||||
JsonConvert.DefaultSettings = null;
|
JsonConvert.DefaultSettings = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,5 +91,5 @@ using System.Security;
|
|||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
|
|
||||||
[assembly: AssemblyVersion("6.0.0.0")]
|
[assembly: AssemblyVersion("6.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("6.0.5.17706")]
|
[assembly: AssemblyFileVersion("6.0.5.17707")]
|
||||||
[assembly: CLSCompliant(true)]
|
[assembly: CLSCompliant(true)]
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ namespace Newtonsoft.Json.Utilities
|
|||||||
#if !(NETFX_CORE || PORTABLE)
|
#if !(NETFX_CORE || PORTABLE)
|
||||||
chars[i] = char.ToLower(chars[i], CultureInfo.InvariantCulture);
|
chars[i] = char.ToLower(chars[i], CultureInfo.InvariantCulture);
|
||||||
#else
|
#else
|
||||||
chars[i] = char.ToLower(chars[i]);
|
chars[i] = char.ToLowerInvariant(chars[i]);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user