Skip to content

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

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

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

Conversation

@evalentini
Copy link

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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