-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Set LC_ALL=C before running ping process in Ping.Send() #50696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ping command output is affected by locale environment variables. This will cause an exception in ParsePingUtilityOutput(). Set LC_ALL=C to get the same output regardless of the environment variables. Fix dotnet#50363.
Tagging subscribers to this area: @dotnet/ncl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
CC @wfurt for final approval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the fix @smdn
@@ -102,6 +102,7 @@ | |||
<Reference Include="System.Threading.ThreadPool" /> | |||
</ItemGroup> | |||
<ItemGroup Condition="'$(TargetsUnix)' == 'true'"> | |||
<Reference Include="System.Collections.Specialized" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like. I had same doubt and build fails without it.
Thank you for reviewing and merging! |
Fix #50363