Skip to content

winget list truncation is not uniform #6137

@ns-hsundararajan

Description

@ns-hsundararajan

Relevant area(s)

WinGet CLI

Relevant command(s)

winget list

Brief description of your issue

I am deploying software to multiple laptops, and using winget list to track. However, the outputs are not consistent for the same software.

I am executing winget list > package_list.txt

Here is one example. On one laptop I see

Microsoft Photos                         MSIX\Microsoft.Windows.Photos_2026.1102… 2026.11020.2000…               

On another, I see

Microsoft Photos                          MSIX\Microsoft.Windows.Photos_2026.11020.… 2026.11020.2000…            

Why is that in the first host's output, it is truncated after 1102... but in the second host's output it is truncated after 11020... ?

Similarly, here's another example

Microsoft Engagement Framework           MSIX\Microsoft.Services.Store.Engagemen… 10.0.23012.0                   
Microsoft Engagement Framework            MSIX\Microsoft.Services.Store.Engagement_… 10.0.23012.0                

On some hosts, the truncation happens after Engagemen (without the t) but on other hosts it is truncated after Engagement (with the t)

Here is another

Dolby Digital Plus decoder for PC OEMs   MSIX\DolbyLaboratories.DolbyDigitalPlus… 1.2.588.0                      

vs

Dolby Digital Plus decoder for PC OEMs    MSIX\DolbyLaboratories.DolbyDigitalPlusDe… 1.2.588.0                   

winget list as it is has no option to not truncate when redirecting output to a file. I would atleast expect the truncation happens uniformly.

Steps to reproduce

It seems random, I do not know how to deterministically reproduce.

Expected behavior

The output of winget list is identical in all hosts where identical softwares are installed.

Actual behavior

In different hosts, the same software name/version/id gets truncated at different points.

Environment

winget --info
Windows Package Manager v1.28.220
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26200.8037
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.28.220.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-OutputIssue related to CLI outputCommand-ListIssue related to WinGet ListIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions