Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit b3efd32

Browse files
committed
Merge in 'release/2.2' changes
2 parents 911a398 + bed52de commit b3efd32

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

src/Native/Unix/System.Native/pal_networking.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ static int32_t TryChangeSocketEventRegistrationInner(
21732173

21742174
assert(currentEvents != newEvents);
21752175

2176-
int32_t changes = currentEvents ^ newEvents;
2176+
int32_t changes = (int32_t)(currentEvents ^ newEvents);
21772177
int8_t readChanged = (changes & SocketEvents_SA_READ) != 0;
21782178
int8_t writeChanged = (changes & SocketEvents_SA_WRITE) != 0;
21792179

@@ -2235,7 +2235,7 @@ static int32_t WaitForSocketEventsInner(int32_t port, struct SocketEvent* buffer
22352235
struct kevent evt = events[i];
22362236
memset(&buffer[i], 0, sizeof(struct SocketEvent));
22372237
buffer[i].Data = GetSocketEventData(evt.udata);
2238-
buffer[i].Events = GetSocketEvents(GetKeventFilter(evt.filter), GetKeventFlags(evt.flags));
2238+
buffer[i].Events = (int32_t)(GetSocketEvents(GetKeventFilter(evt.filter), GetKeventFlags(evt.flags)));
22392239
}
22402240

22412241
*count = numEvents;

src/System.Globalization/tests/RegionInfo/RegionInfoTests.Properties.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public void NativeName(string name, string expected)
5151
[Theory]
5252
[InlineData("en-US", new string[] { "United States" })]
5353
[InlineData("US", new string[] { "United States" })]
54-
[InlineData("zh-CN", new string[] { "China", "People's Republic of China" })]
55-
[InlineData("CN", new string[] { "China", "People's Republic of China" })]
54+
[InlineData("zh-CN", new string[] { "China", "People's Republic of China", "China mainland" })]
55+
[InlineData("CN", new string[] { "China", "People's Republic of China", "China mainland" })]
5656
public void EnglishName(string name, string[] expected)
5757
{
5858
string result = new RegionInfo(name).EnglishName;

src/System.Runtime.Serialization.Json/tests/DataContractJsonSerializer.cs

+1-10
Original file line numberDiff line numberDiff line change
@@ -3062,15 +3062,6 @@ private static string getCheckFailureMsg(string propertyName)
30623062

30633063
private static string GetAmString(DateTimeFormat dateTimeFormat)
30643064
{
3065-
var dcjsSettings = new DataContractJsonSerializerSettings() { DateTimeFormat = dateTimeFormat };
3066-
var dcjs = new DataContractJsonSerializer(typeof(DateTime), dcjsSettings);
3067-
using (var ms = new MemoryStream())
3068-
{
3069-
dcjs.WriteObject(ms, new DateTime());
3070-
ms.Position = 0;
3071-
string output = new StreamReader(ms).ReadToEnd();
3072-
string actualam = output.Contains("a.m.") ? "a.m." : "a. m.";
3073-
return actualam;
3074-
}
3065+
return ((CultureInfo)dateTimeFormat.FormatProvider).DateTimeFormat.AMDesignator;
30753066
}
30763067
}

src/shims/shims.proj

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363

6464
<WriteSigningRequired
6565
Condition="'@(NetFxContracts)' != '' and '$(SkipSigning)' != 'true' and '$(SignType)' != 'public'"
66-
AuthenticodeSig="Microsoft"
66+
AuthenticodeSig="Microsoft400"
6767
StrongNameSig="%(NetFxContracts.StrongNameSig)"
6868
MarkerFile="$(GenFacadesOutputPath)%(NetFxContracts.Filename)%(NetFxContracts.Extension).requires_signing" />
6969

7070
<WriteSigningRequired
7171
Condition="'@(NETStandardContracts)' != '' and '$(SkipSigning)' != 'true' and '$(SignType)' != 'public'"
72-
AuthenticodeSig="Microsoft"
72+
AuthenticodeSig="Microsoft400"
7373
StrongNameSig="Open"
7474
MarkerFile="$(GenFacadesOutputPath)%(NETStandardContracts.Filename)%(NETStandardContracts.Extension).requires_signing" />
7575

0 commit comments

Comments
 (0)