Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#100691
Closed
jasonleenaylor wants to merge 6 commits into
dotnet:maindotnet/runtime:mainfrom
jasonleenaylor:fix-changeextensionjasonleenaylor/runtime:fix-changeextensionCopy head branch name to clipboard
Closed

Fix Path.ChangeExtension behavior with empty extension (#100687)#100691
jasonleenaylor wants to merge 6 commits into
dotnet:maindotnet/runtime:mainfrom
jasonleenaylor:fix-changeextensionjasonleenaylor/runtime:fix-changeextensionCopy head branch name to clipboard

Conversation

@jasonleenaylor

@jasonleenaylor jasonleenaylor commented Apr 5, 2024

Copy link
Copy Markdown

- When ChangeExtension is called with an empty string completely
  remove the extension instead of adding a '.'
@ghost ghost added the area-System.IO label Apr 5, 2024
@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
Copy Markdown
Contributor

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

@danmoseley

danmoseley commented Apr 5, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Author

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

@jozkee

jozkee commented Apr 29, 2024

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.