Skip to content
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

Fix Path.ChangeExtension behavior with empty extension (#100687) #100691

Closed

Conversation

jasonleenaylor
Copy link

@jasonleenaylor jasonleenaylor commented Apr 5, 2024

- When ChangeExtension is called with an empty string completely
  remove the extension instead of adding a '.'
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Apr 5, 2024
@danmoseley
Copy link
Member

How long has it had the current behavior? Is this potentially going to break existing code (it might still be worth changing)

@danmoseley
Copy link
Member

danmoseley commented Apr 5, 2024

Oh, that discussion should probably be in the bug. I didn't see there was a bug.

Can you put "Fixes #100687" at the top of the top comment here? That also causes the issue to be closed if and when we merge this.

@jasonleenaylor jasonleenaylor marked this pull request as ready for review April 8, 2024 17:17
@jasonleenaylor
Copy link
Author

@dotnet-policy-service agree company="SIL International"

@Jozkee
Copy link
Member

Jozkee commented Apr 29, 2024

Closing as per #100687 (comment)

@Jozkee Jozkee closed this Apr 29, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.IO community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Path.ChangeExtension with an empty string behaves differently on Linux and Windows platforms
3 participants