Title: `ConvertTo-Csv`/`Export-Csv -UseCulture:$false` uses the wrong delimiter in ouput · Issue #26513 · PowerShell/PowerShell · GitHub
Open Graph Title: `ConvertTo-Csv`/`Export-Csv -UseCulture:$false` uses the wrong delimiter in ouput · Issue #26513 · PowerShell/PowerShell
X Title: `ConvertTo-Csv`/`Export-Csv -UseCulture:$false` uses the wrong delimiter in ouput · Issue #26513 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Summary This is ...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/26513
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ConvertTo-Csv`/`Export-Csv -UseCulture:$false` uses the wrong delimiter in ouput","articleBody":"### Prerequisites\n\n- [x] Write a descriptive title.\n- [x] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [x] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [x] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n\n### Summary\n\nThis is a sub-issue of https://github.com/PowerShell/PowerShell/issues/25242.\n\n`ConvertTo-Csv` and `Import-Csv` do not respect an explicit `$false` value for the `-UseCulture` switch parameter.\n\n`-UseCulture:$false` doesn'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`).\n\n\n### Steps to reproduce\n\n`ConvertTo-Csv`:\n\n```powershell\n[pscustomobject] @{ H1 = 'V1'; H2 = 'V2' } | ConvertTo-Csv -UseCulture:$false\n```\n\n`Export-Csv`:\n\n```powershell\n$file = (New-TemporaryFile).FullName\n[pscustomobject] @{ H1 = 'V1'; H2 = 'V2' } | Export-Csv -LiteralPath $file -UseCulture:$false\n```\n\n\n### Expected behavior\n\n`ConvertTo-Csv`:\n\n```\n\"H1\",\"H2\"\n\"V1\",\"V2\"\n```\n\n`Export-Csv`:\n\n```\n\"H1\",\"H2\"\n\"V1\",\"V2\"\n```\n\n- `-UseCulture:$false` behaves as if the switch wasn't specified.\n- The default `,` item delimiter is used by both commands.\n\n\n### Actual behavior\n\n`ConvertTo-Csv`:\n\n```\n\"H1\"\"H2\"\n\"V1\"\"V2\"\n```\n\n`Export-Csv`:\n\n```\n\"H1\" \"H2\"\n\"V1\" \"V2\"\n```\n\n- `-UseCulture:$false` neither behaves as if the switch was or wasn't specified.\n- `ConvertTo-Csv` output includes no item delimiter.\n- `Export-Csv` output includes a space as the item delimiter.\n\n\n### Environment data\n\n```powershell\nName Value\n---- -----\nPSVersion 7.6.0-preview.5\nPSEdition Core\nGitCommitId 7.6.0-preview.5\nOS Microsoft Windows 10.0.19045\nPlatform Win32NT\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1…}\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n```","author":{"url":"https://github.com/surfingoldelephant","@type":"Person","name":"surfingoldelephant"},"datePublished":"2025-11-22T17:03:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/26513/PowerShell/issues/26513"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a60c35d6-1372-3d18-465c-beb3fb6ae1c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A996:3C007C:60A4D7:8B8DDB:6A4E0B67 |
| html-safe-nonce | a36a4cd2dc67ab5a5f7022dbc1769139a476529a0e76968f2a71edb4dedc1927 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTk2OjNDMDA3Qzo2MEE0RDc6OEI4RERCOjZBNEUwQjY3IiwidmlzaXRvcl9pZCI6IjgzOTUwMzM1NjkyMTEwNTkwNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 69a581588277e410c86519c34253cfcdf0d6a3f100e91c5abfec9d15d1d7e7f1 |
| hovercard-subject-tag | issue:3654877011 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/26513/issue_layout |
| twitter:image | https://opengraph.githubassets.com/08a3200e39342a54df5bf36d88ed8de8700cbdea8d7ded279697826806a2cbb6/PowerShell/PowerShell/issues/26513 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08a3200e39342a54df5bf36d88ed8de8700cbdea8d7ded279697826806a2cbb6/PowerShell/PowerShell/issues/26513 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | surfingoldelephant |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width