-
Notifications
You must be signed in to change notification settings - Fork 8.3k
ConvertTo-Csv/Export-Csv -UseCulture:$false uses the wrong delimiter in ouput #26513
Copy link
Copy link
Open
Open
Copy link
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility moduleWG-ReviewedA Working Group has reviewed this and made a recommendationA Working Group has reviewed this and made a recommendation
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility moduleWG-ReviewedA Working Group has reviewed this and made a recommendationA Working Group has reviewed this and made a recommendation
Type
Projects
Status
Reviewed
Prerequisites
Summary
This is a sub-issue of #25242.
ConvertTo-CsvandImport-Csvdo not respect an explicit$falsevalue for the-UseCultureswitch parameter.-UseCulture:$falsedoesn't behave as if the switch wasn't specified. It also doesn't behave as if it was specified. Instead, it results in either no delimiter (ConvertTo-Csv) or a space as the delimiter (Import-Csv).Steps to reproduce
ConvertTo-Csv:Export-Csv:Expected behavior
ConvertTo-Csv:Export-Csv:-UseCulture:$falsebehaves as if the switch wasn't specified.,item delimiter is used by both commands.Actual behavior
ConvertTo-Csv:Export-Csv:-UseCulture:$falseneither behaves as if the switch was or wasn't specified.ConvertTo-Csvoutput includes no item delimiter.Export-Csvoutput includes a space as the item delimiter.Environment data