Skip to content

Commit bb409c0

Browse files
committed
Fix custom culture throws ArgumentException on .NET 3.5 unit tests.
1 parent fb1d99b commit bb409c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/MsgPack.UnitTest/LegacyJapaneseCultureInfo.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ namespace MsgPack
3030
internal sealed class LegacyJapaneseCultureInfo : CultureInfo
3131
{
3232
public LegacyJapaneseCultureInfo()
33-
: base( "ja-NP" )
33+
#if NETSTANDARD1_1 || NETSTANDARD1_3 || SILVERLIGHT
34+
: base( "ja-JP" )
35+
#else
36+
: base( "ja-JP", true )
37+
#endif // NETSTANDARD1_1 || NETSTANDARD1_3 || SILVERLIGHT
3438
{
3539
var numberFormatInfo = CultureInfo.InvariantCulture.NumberFormat.Clone() as NumberFormatInfo;
3640
numberFormatInfo.NegativeSign = "\uFF0D"; // Full width hiphen

0 commit comments

Comments
 (0)