Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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

Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.
@surfingoldelephant

Description

@surfingoldelephant

Prerequisites

Summary

This is a sub-issue of#25242.

ConvertTo-Csv andImport-Csv do not respect an explicit$false value for the-UseCulture switch parameter.

-UseCulture:$false doesn't behave as if the switch wasn't specified. It also doesn't behave as if itwas specified. Instead, it results in either no delimiter (ConvertTo-Csv) or a space as the delimiter (Import-Csv).

Steps to reproduce

ConvertTo-Csv:

[pscustomobject]@{H1='V1';H2='V2' }|ConvertTo-Csv-UseCulture:$false

Export-Csv:

$file= (New-TemporaryFile).FullName[pscustomobject]@{H1='V1';H2='V2' }|Export-Csv-LiteralPath$file-UseCulture:$false

Expected behavior

ConvertTo-Csv:

"H1","H2""V1","V2"

Export-Csv:

"H1","H2""V1","V2"
  • -UseCulture:$false behaves as if the switch wasn't specified.
  • The default, item delimiter is used by both commands.

Actual behavior

ConvertTo-Csv:

"H1""H2""V1""V2"

Export-Csv:

"H1" "H2""V1" "V2"
  • -UseCulture:$false neither behaves as if the switch was or wasn't specified.
  • ConvertTo-Csv output includes no item delimiter.
  • Export-Csv output includes a space as the item delimiter.

Environment data

Name                           Value---------PSVersion7.6.0-preview.5PSEdition                      CoreGitCommitId7.6.0-preview.5OS                             Microsoft Windows10.0.19045Platform                       Win32NTPSCompatibleVersions           {1.0,2.0,3.0,4.0,5.0,5.1…}PSRemotingProtocolVersion2.3SerializationVersion1.1.0.1WSManStackVersion3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp