From d132f775f1ee063ae7c084f5042d158fa99491e2 Mon Sep 17 00:00:00 2001
From: Connor Bullard <32420624+cdbullard@users.noreply.github.com>
Date: Thu, 8 Sep 2022 21:41:48 -0400
Subject: [PATCH 01/14] Initial commit
---
.../src/System/Globalization/Calendar.cs | 14 +++++++-------
.../src/System/Globalization/CalendarData.cs | 4 ++--
.../Globalization/EastAsianLunisolarCalendar.cs | 2 +-
.../src/System/Globalization/GregorianCalendar.cs | 2 +-
.../src/System/Globalization/JulianCalendar.cs | 2 +-
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/Calendar.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/Calendar.cs
index a24facc1ea19ac..901311d218cd1b 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Globalization/Calendar.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/Calendar.cs
@@ -650,10 +650,10 @@ internal virtual bool IsValidDay(int year, int month, int day, int era)
/// Returns and assigns the maximum value to represent a two digit year.
/// This value is the upper boundary of a 100 year range that allows a
/// two digit year to be properly translated to a four digit year.
- /// For example, if 2029 is the upper boundary, then a two digit value of
- /// 30 should be interpreted as 1930 while a two digit value of 29 should
- /// be interpreted as 2029. In this example, the 100 year range would be
- /// from 1930-2029. See ToFourDigitYear().
+ /// For example, if 2049 is the upper boundary, then a two digit value of
+ /// 30 should be interpreted as 1950 while a two digit value of 49 should
+ /// be interpreted as 2049. In this example, the 100 year range would be
+ /// from 1950-2049. See ToFourDigitYear().
///
public virtual int TwoDigitYearMax
{
@@ -667,9 +667,9 @@ public virtual int TwoDigitYearMax
///
/// Converts the year value to the appropriate century by using the
- /// TwoDigitYearMax property. For example, if the TwoDigitYearMax value is 2029,
- /// then a two digit value of 30 will get converted to 1930 while a two digit
- /// value of 29 will get converted to 2029.
+ /// TwoDigitYearMax property. For example, if the TwoDigitYearMax value is 2049,
+ /// then a two digit value of 50 will get converted to 1950 while a two digit
+ /// value of 49 will get converted to 2049.
///
public virtual int ToFourDigitYear(int year)
{
diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.cs
index 35e493adcbc9fd..b60fd8eb4c8044 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.cs
@@ -40,7 +40,7 @@ internal sealed partial class CalendarData
internal string[] saLeapYearMonthNames = null!; // Multiple strings for the month names in a leap year.
// Integers at end to make marshaller happier
- internal int iTwoDigitYearMax = 2029; // Max 2 digit year (for Y2K bug data entry)
+ internal int iTwoDigitYearMax = 2049; // Max 2 digit year (for Y2K bug data entry)
private int iCurrentEra; // current era # (usually 1)
// Use overrides?
@@ -66,7 +66,7 @@ private static CalendarData CreateInvariant()
invariant.sNativeName = "Gregorian Calendar"; // Calendar Name
// Year
- invariant.iTwoDigitYearMax = 2029; // Max 2 digit year (for Y2K bug data entry)
+ invariant.iTwoDigitYearMax = 2049; // Max 2 digit year (for Y2K bug data entry)
invariant.iCurrentEra = 1; // Current era #
// Formats
diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/EastAsianLunisolarCalendar.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/EastAsianLunisolarCalendar.cs
index 73322a6570a726..6e5a322c6d1cb0 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Globalization/EastAsianLunisolarCalendar.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/EastAsianLunisolarCalendar.cs
@@ -646,7 +646,7 @@ public override bool IsLeapYear(int year, int era)
return InternalIsLeapYear(year);
}
- private const int DefaultGregorianTwoDigitYearMax = 2029;
+ private const int DefaultGregorianTwoDigitYearMax = 2049;
public override int TwoDigitYearMax
{
diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/GregorianCalendar.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/GregorianCalendar.cs
index e883c8e3772adf..bc49fb7b37f73b 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Globalization/GregorianCalendar.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/GregorianCalendar.cs
@@ -406,7 +406,7 @@ internal override bool TryToDateTime(int year, int month, int day, int hour, int
return DateTime.TryCreate(year, month, day, hour, minute, second, millisecond, out result);
}
- private const int DefaultTwoDigitYearMax = 2029;
+ private const int DefaultTwoDigitYearMax = 2049;
public override int TwoDigitYearMax
{
diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/JulianCalendar.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/JulianCalendar.cs
index c7f13158a326c7..d81f1ca00382a1 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Globalization/JulianCalendar.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/JulianCalendar.cs
@@ -54,7 +54,7 @@ public class JulianCalendar : Calendar
public JulianCalendar()
{
// There is no system setting of TwoDigitYear max, so set the value here.
- _twoDigitYearMax = 2029;
+ _twoDigitYearMax = 2049;
}
internal override CalendarId ID => CalendarId.JULIAN;
From 4873c8bff4046f748fcaa3bb340145536770cd9c Mon Sep 17 00:00:00 2001
From: Connor Bullard <32420624+cdbullard@users.noreply.github.com>
Date: Mon, 10 Oct 2022 22:44:19 -0400
Subject: [PATCH 02/14] Updating unit tests
---
.../System.Globalization.Calendars.sln | 95 +++++++++-------
.../GregorianCalendarTwoDigitYearMax.cs | 2 +-
.../KoreanCalendarTwoDigitYearMax.cs | 2 +-
.../ThaiBuddhistCalendarToFourDigitYear.cs | 2 +-
.../ThaiBuddhistCalendarTwoDigitYearMax.cs | 2 +-
.../System.Globalization.sln | 107 ++++++++++--------
.../src/System/Globalization/CalendarData.cs | 2 +-
.../EastAsianLunisolarCalendar.cs | 2 +-
8 files changed, 114 insertions(+), 100 deletions(-)
diff --git a/src/libraries/System.Globalization.Calendars/System.Globalization.Calendars.sln b/src/libraries/System.Globalization.Calendars/System.Globalization.Calendars.sln
index dcce7bd5b442de..c04f2873792af3 100644
--- a/src/libraries/System.Globalization.Calendars/System.Globalization.Calendars.sln
+++ b/src/libraries/System.Globalization.Calendars/System.Globalization.Calendars.sln
@@ -1,4 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32922.545
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Private.CoreLib", "..\..\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj", "{E70B35E3-B6C3-4196-9FAB-1A0D45748E79}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestUtilities", "..\Common\tests\TestUtilities\TestUtilities.csproj", "{32F01C47-D495-45CE-9567-E4C434F7D627}"
@@ -31,17 +35,23 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "gen", "gen", "{749527EE-F2D
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Checked|Any CPU = Checked|Any CPU
+ Checked|x64 = Checked|x64
+ Checked|x86 = Checked|x86
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
- Checked|Any CPU = Checked|Any CPU
- Checked|x64 = Checked|x64
- Checked|x86 = Checked|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|Any CPU.ActiveCfg = Checked|x64
+ {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|Any CPU.Build.0 = Checked|x64
+ {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x64.ActiveCfg = Checked|x64
+ {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x64.Build.0 = Checked|x64
+ {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x86.ActiveCfg = Checked|x86
+ {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x86.Build.0 = Checked|x86
{E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Debug|Any CPU.ActiveCfg = Debug|x64
{E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Debug|Any CPU.Build.0 = Debug|x64
{E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Debug|x64.ActiveCfg = Debug|x64
@@ -54,12 +64,9 @@ Global
{E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Release|x64.Build.0 = Release|x64
{E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Release|x86.ActiveCfg = Release|x86
{E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Release|x86.Build.0 = Release|x86
- {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|Any CPU.ActiveCfg = Checked|x64
- {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|Any CPU.Build.0 = Checked|x64
- {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x64.ActiveCfg = Checked|x64
- {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x64.Build.0 = Checked|x64
- {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x86.ActiveCfg = Checked|x86
- {E70B35E3-B6C3-4196-9FAB-1A0D45748E79}.Checked|x86.Build.0 = Checked|x86
+ {32F01C47-D495-45CE-9567-E4C434F7D627}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {32F01C47-D495-45CE-9567-E4C434F7D627}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {32F01C47-D495-45CE-9567-E4C434F7D627}.Checked|x86.ActiveCfg = Debug|Any CPU
{32F01C47-D495-45CE-9567-E4C434F7D627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32F01C47-D495-45CE-9567-E4C434F7D627}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32F01C47-D495-45CE-9567-E4C434F7D627}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -72,9 +79,9 @@ Global
{32F01C47-D495-45CE-9567-E4C434F7D627}.Release|x64.Build.0 = Release|Any CPU
{32F01C47-D495-45CE-9567-E4C434F7D627}.Release|x86.ActiveCfg = Release|Any CPU
{32F01C47-D495-45CE-9567-E4C434F7D627}.Release|x86.Build.0 = Release|Any CPU
- {32F01C47-D495-45CE-9567-E4C434F7D627}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {32F01C47-D495-45CE-9567-E4C434F7D627}.Checked|x64.ActiveCfg = Debug|Any CPU
- {32F01C47-D495-45CE-9567-E4C434F7D627}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {6553EF4A-C352-4034-835A-7679E589B5A6}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {6553EF4A-C352-4034-835A-7679E589B5A6}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {6553EF4A-C352-4034-835A-7679E589B5A6}.Checked|x86.ActiveCfg = Debug|Any CPU
{6553EF4A-C352-4034-835A-7679E589B5A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6553EF4A-C352-4034-835A-7679E589B5A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6553EF4A-C352-4034-835A-7679E589B5A6}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -87,9 +94,9 @@ Global
{6553EF4A-C352-4034-835A-7679E589B5A6}.Release|x64.Build.0 = Release|Any CPU
{6553EF4A-C352-4034-835A-7679E589B5A6}.Release|x86.ActiveCfg = Release|Any CPU
{6553EF4A-C352-4034-835A-7679E589B5A6}.Release|x86.Build.0 = Release|Any CPU
- {6553EF4A-C352-4034-835A-7679E589B5A6}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {6553EF4A-C352-4034-835A-7679E589B5A6}.Checked|x64.ActiveCfg = Debug|Any CPU
- {6553EF4A-C352-4034-835A-7679E589B5A6}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {705D0D71-8890-4893-824F-E302CDE5349F}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {705D0D71-8890-4893-824F-E302CDE5349F}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {705D0D71-8890-4893-824F-E302CDE5349F}.Checked|x86.ActiveCfg = Debug|Any CPU
{705D0D71-8890-4893-824F-E302CDE5349F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{705D0D71-8890-4893-824F-E302CDE5349F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{705D0D71-8890-4893-824F-E302CDE5349F}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -102,9 +109,9 @@ Global
{705D0D71-8890-4893-824F-E302CDE5349F}.Release|x64.Build.0 = Release|Any CPU
{705D0D71-8890-4893-824F-E302CDE5349F}.Release|x86.ActiveCfg = Release|Any CPU
{705D0D71-8890-4893-824F-E302CDE5349F}.Release|x86.Build.0 = Release|Any CPU
- {705D0D71-8890-4893-824F-E302CDE5349F}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {705D0D71-8890-4893-824F-E302CDE5349F}.Checked|x64.ActiveCfg = Debug|Any CPU
- {705D0D71-8890-4893-824F-E302CDE5349F}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Checked|x86.ActiveCfg = Debug|Any CPU
{CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -117,9 +124,9 @@ Global
{CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Release|x64.Build.0 = Release|Any CPU
{CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Release|x86.ActiveCfg = Release|Any CPU
{CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Release|x86.Build.0 = Release|Any CPU
- {CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Checked|x64.ActiveCfg = Debug|Any CPU
- {CD1CDCDD-64FA-4E75-A74F-16A978C56449}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Checked|x86.ActiveCfg = Debug|Any CPU
{BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -132,9 +139,9 @@ Global
{BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Release|x64.Build.0 = Release|Any CPU
{BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Release|x86.ActiveCfg = Release|Any CPU
{BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Release|x86.Build.0 = Release|Any CPU
- {BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Checked|x64.ActiveCfg = Debug|Any CPU
- {BFEF5B19-7D03-42BA-9CD1-D1B53F35D706}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {617B4727-AA14-4840-8898-1947D7C6E437}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {617B4727-AA14-4840-8898-1947D7C6E437}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {617B4727-AA14-4840-8898-1947D7C6E437}.Checked|x86.ActiveCfg = Debug|Any CPU
{617B4727-AA14-4840-8898-1947D7C6E437}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{617B4727-AA14-4840-8898-1947D7C6E437}.Debug|Any CPU.Build.0 = Debug|Any CPU
{617B4727-AA14-4840-8898-1947D7C6E437}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -147,9 +154,9 @@ Global
{617B4727-AA14-4840-8898-1947D7C6E437}.Release|x64.Build.0 = Release|Any CPU
{617B4727-AA14-4840-8898-1947D7C6E437}.Release|x86.ActiveCfg = Release|Any CPU
{617B4727-AA14-4840-8898-1947D7C6E437}.Release|x86.Build.0 = Release|Any CPU
- {617B4727-AA14-4840-8898-1947D7C6E437}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {617B4727-AA14-4840-8898-1947D7C6E437}.Checked|x64.ActiveCfg = Debug|Any CPU
- {617B4727-AA14-4840-8898-1947D7C6E437}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {D99C08B2-8AEF-4767-BAFC-10DC63478640}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {D99C08B2-8AEF-4767-BAFC-10DC63478640}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {D99C08B2-8AEF-4767-BAFC-10DC63478640}.Checked|x86.ActiveCfg = Debug|Any CPU
{D99C08B2-8AEF-4767-BAFC-10DC63478640}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D99C08B2-8AEF-4767-BAFC-10DC63478640}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D99C08B2-8AEF-4767-BAFC-10DC63478640}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -162,9 +169,9 @@ Global
{D99C08B2-8AEF-4767-BAFC-10DC63478640}.Release|x64.Build.0 = Release|Any CPU
{D99C08B2-8AEF-4767-BAFC-10DC63478640}.Release|x86.ActiveCfg = Release|Any CPU
{D99C08B2-8AEF-4767-BAFC-10DC63478640}.Release|x86.Build.0 = Release|Any CPU
- {D99C08B2-8AEF-4767-BAFC-10DC63478640}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {D99C08B2-8AEF-4767-BAFC-10DC63478640}.Checked|x64.ActiveCfg = Debug|Any CPU
- {D99C08B2-8AEF-4767-BAFC-10DC63478640}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Checked|x86.ActiveCfg = Debug|Any CPU
{85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -177,9 +184,9 @@ Global
{85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Release|x64.Build.0 = Release|Any CPU
{85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Release|x86.ActiveCfg = Release|Any CPU
{85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Release|x86.Build.0 = Release|Any CPU
- {85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Checked|x64.ActiveCfg = Debug|Any CPU
- {85FFAE67-940A-4C58-AF73-0E0CF9722B29}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Checked|x86.ActiveCfg = Debug|Any CPU
{6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -192,9 +199,9 @@ Global
{6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Release|x64.Build.0 = Release|Any CPU
{6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Release|x86.ActiveCfg = Release|Any CPU
{6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Release|x86.Build.0 = Release|Any CPU
- {6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Checked|x64.ActiveCfg = Debug|Any CPU
- {6AADBEF6-644B-4174-9AB4-EB6023E2404B}.Checked|x86.ActiveCfg = Debug|Any CPU
+ {80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
+ {80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Checked|x64.ActiveCfg = Debug|Any CPU
+ {80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Checked|x86.ActiveCfg = Debug|Any CPU
{80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -207,27 +214,27 @@ Global
{80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Release|x64.Build.0 = Release|Any CPU
{80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Release|x86.ActiveCfg = Release|Any CPU
{80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Release|x86.Build.0 = Release|Any CPU
- {80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Checked|Any CPU.ActiveCfg = Debug|Any CPU
- {80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Checked|x64.ActiveCfg = Debug|Any CPU
- {80B76066-1C3A-449A-8E4B-76F7D2C74FEF}.Checked|x86.ActiveCfg = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{E70B35E3-B6C3-4196-9FAB-1A0D45748E79} = {37875A74-8496-4B3B-828D-C397F5379B65}
- {705D0D71-8890-4893-824F-E302CDE5349F} = {37875A74-8496-4B3B-828D-C397F5379B65}
{32F01C47-D495-45CE-9567-E4C434F7D627} = {CDAC58B3-78D7-482F-B3EF-798DFAF7A1A4}
+ {6553EF4A-C352-4034-835A-7679E589B5A6} = {4449A37B-FFED-470F-9F39-24611CB72D10}
+ {705D0D71-8890-4893-824F-E302CDE5349F} = {37875A74-8496-4B3B-828D-C397F5379B65}
{CD1CDCDD-64FA-4E75-A74F-16A978C56449} = {CDAC58B3-78D7-482F-B3EF-798DFAF7A1A4}
{BFEF5B19-7D03-42BA-9CD1-D1B53F35D706} = {CDAC58B3-78D7-482F-B3EF-798DFAF7A1A4}
- {6553EF4A-C352-4034-835A-7679E589B5A6} = {4449A37B-FFED-470F-9F39-24611CB72D10}
- {D99C08B2-8AEF-4767-BAFC-10DC63478640} = {4449A37B-FFED-470F-9F39-24611CB72D10}
- {80B76066-1C3A-449A-8E4B-76F7D2C74FEF} = {4449A37B-FFED-470F-9F39-24611CB72D10}
{617B4727-AA14-4840-8898-1947D7C6E437} = {749527EE-F2D9-4169-A75A-B00BA30651A1}
+ {D99C08B2-8AEF-4767-BAFC-10DC63478640} = {4449A37B-FFED-470F-9F39-24611CB72D10}
{85FFAE67-940A-4C58-AF73-0E0CF9722B29} = {749527EE-F2D9-4169-A75A-B00BA30651A1}
{6AADBEF6-644B-4174-9AB4-EB6023E2404B} = {749527EE-F2D9-4169-A75A-B00BA30651A1}
+ {80B76066-1C3A-449A-8E4B-76F7D2C74FEF} = {4449A37B-FFED-470F-9F39-24611CB72D10}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {73A91A21-729E-4C60-BCD4-389B47ED823F}
EndGlobalSection
+ GlobalSection(SharedMSBuildProjectFiles) = preSolution
+ ..\System.Private.CoreLib\src\System.Private.CoreLib.Shared.projitems*{e70b35e3-b6c3-4196-9fab-1a0d45748e79}*SharedItemsImports = 5
+ EndGlobalSection
EndGlobal
diff --git a/src/libraries/System.Globalization.Calendars/tests/GregorianCalendar/GregorianCalendarTwoDigitYearMax.cs b/src/libraries/System.Globalization.Calendars/tests/GregorianCalendar/GregorianCalendarTwoDigitYearMax.cs
index 3f6517d4127ae8..e35e9594ea4e01 100644
--- a/src/libraries/System.Globalization.Calendars/tests/GregorianCalendar/GregorianCalendarTwoDigitYearMax.cs
+++ b/src/libraries/System.Globalization.Calendars/tests/GregorianCalendar/GregorianCalendarTwoDigitYearMax.cs
@@ -22,7 +22,7 @@ public class GregorianCalendarTwoDigitYearMax
public void TwoDigitYearMax(GregorianCalendarTypes calendarType)
{
Calendar calendar = new GregorianCalendar(calendarType);
- Assert.True(calendar.TwoDigitYearMax == 2029 || calendar.TwoDigitYearMax == 2049, $"Unexpected calendar.TwoDigitYearMax {calendar.TwoDigitYearMax}");
+ Assert.True(calendar.TwoDigitYearMax == 2049 || calendar.TwoDigitYearMax == 2069, $"Unexpected calendar.TwoDigitYearMax {calendar.TwoDigitYearMax}");
int randomTwoDigitYearMax = MinTwoDigitYear + s_randomDataGenerator.GetInt32(-55) % (MaxYear - MinTwoDigitYear + 1);
calendar.TwoDigitYearMax = randomTwoDigitYearMax;
diff --git a/src/libraries/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.cs b/src/libraries/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.cs
index 64b236ec5775ff..d59cb56a88fbb8 100644
--- a/src/libraries/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.cs
+++ b/src/libraries/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.cs
@@ -11,7 +11,7 @@ public class KoreanCalendarTwoDigitYearMax
public void TwoDigitYearMax_Get()
{
var calendar = new KoreanCalendar();
- Assert.True(calendar.TwoDigitYearMax == 4362 || calendar.TwoDigitYearMax == 4382, $"Unexpected calendar.TwoDigitYearMax {calendar.TwoDigitYearMax}");
+ Assert.True(calendar.TwoDigitYearMax == 4382 || calendar.TwoDigitYearMax == 4402, $"Unexpected calendar.TwoDigitYearMax {calendar.TwoDigitYearMax}");
}
[Theory]
diff --git a/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarToFourDigitYear.cs b/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarToFourDigitYear.cs
index a80fd1e40dc6c1..2728049fee790f 100644
--- a/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarToFourDigitYear.cs
+++ b/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarToFourDigitYear.cs
@@ -16,7 +16,7 @@ public class ThaiBuddhistCalendarToFourDigitYear
public void ToFourDigitYear(int year)
{
ThaiBuddhistCalendar calendar = new ThaiBuddhistCalendar();
- calendar.TwoDigitYearMax = 2029;
+ calendar.TwoDigitYearMax = 2049;
if (year > 99)
{
Assert.Equal(year, calendar.ToFourDigitYear(year));
diff --git a/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarTwoDigitYearMax.cs b/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarTwoDigitYearMax.cs
index 53e551058ee2d5..ad021dd1771dfd 100644
--- a/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarTwoDigitYearMax.cs
+++ b/src/libraries/System.Globalization.Calendars/tests/ThaiBuddhistCalendar/ThaiBuddhistCalendarTwoDigitYearMax.cs
@@ -12,7 +12,7 @@ public class ThaiBuddhistCalendarTwoDigitYearMax
public void TwoDigitYearMax_Get()
{
var calendar = new ThaiBuddhistCalendar();
- Assert.True(calendar.TwoDigitYearMax == 2029 + 543 || calendar.TwoDigitYearMax == 2049 + 543, $"Unexpected calendar.TwoDigitYearMax {calendar.TwoDigitYearMax}");
+ Assert.True(calendar.TwoDigitYearMax == 2049 + 543 || calendar.TwoDigitYearMax == 2069 + 543, $"Unexpected calendar.TwoDigitYearMax {calendar.TwoDigitYearMax}");
}
public static IEnumerable