Skip to content

Fix csv cmdlets to use default delimiter with -UseCulture:False#27036

Open
evalentini wants to merge 3 commits into
PowerShell:masterfrom
evalentini:fix-useculture-false-26513
Open

Fix csv cmdlets to use default delimiter with -UseCulture:False#27036
evalentini wants to merge 3 commits into
PowerShell:masterfrom
evalentini:fix-useculture-false-26513

Conversation

@evalentini
Copy link
Copy Markdown

@evalentini evalentini commented Mar 15, 2026

PR Summary

Fix ConvertTo-Csv -UseCulture:$False and Export-Csv -UseCulture:$False to use default comma delimiter.

Fixes #26513

PR Context

When passing -UseCulture:$false, the delimiter is not set and the command breaks. Use the default comma delimiter when useCulture is false. Update of solution in PR #26551 by @blanca-negrete. Update to use conditional operator per reviewer feedback.

PR Checklist

@evalentini evalentini requested a review from a team as a code owner March 15, 2026 20:57
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Review - Needed The PR is being reviewed label Mar 29, 2026
@microsoft-github-policy-service
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ConvertTo-Csv/Export-Csv -UseCulture:$false uses the wrong delimiter in ouput

1 participant