From 95d589d23b4b49a3918d6f4d08a13e301828547f Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Tue, 4 Dec 2018 05:51:50 -0800 Subject: [PATCH] Fixing the Vector64/128/256.ToString(string) methods to pass `null` for the formatProvider (dotnet/coreclr#21350) Commit migrated from https://github.com/dotnet/coreclr/commit/02274cb31cca8530480e6087564abe78a72d198d --- .../System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs | 2 +- .../System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs | 2 +- .../System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs index da73f87..72cbc82 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs @@ -323,7 +323,7 @@ namespace System.Runtime.Intrinsics /// The type of the current instance () is not supported. public string ToString(string format) { - return ToString(format, CultureInfo.CurrentCulture); + return ToString(format, formatProvider: null); } /// Converts the current instance to an equivalent string representation using the specified format. diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs index 3731698..7020b3c 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs @@ -325,7 +325,7 @@ namespace System.Runtime.Intrinsics /// The type of the current instance () is not supported. public string ToString(string format) { - return ToString(format, CultureInfo.CurrentCulture); + return ToString(format, formatProvider: null); } /// Converts the current instance to an equivalent string representation using the specified format. diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs index b190549..be52470 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs @@ -270,7 +270,7 @@ namespace System.Runtime.Intrinsics /// The type of the current instance () is not supported. public string ToString(string format) { - return ToString(format, CultureInfo.CurrentCulture); + return ToString(format, formatProvider: null); } /// Converts the current instance to an equivalent string representation using the specified format. -- 2.7.4