Skip to content

Git merge doesn't understand UTF16 and that's what PSD1 files are created as. #745

Closed
@andrewducker

Description

@andrewducker

System Details

1.12.1
f6868fce3eeb16663840eb82123369dec6077a9b

Major Minor Build Revision


1 0 0 0

ms-vscode.PowerShell@1.0.0

Name Value


PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.16406
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2

Issue Description

Git comparisons of PSD1 files show nonsense characters. I believe this is because PSD1 files are automatically generated as UTF-16 LE, and Git doesn't recognise this as a text format.
If VSCode is going to be the default tool for editing Powershell files then it should be able to diff powershell module files.

Attached Logs

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions