winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Gibberish and inconsistencies in package IDs

Open github-account1111 opened this issue 1 year ago • 4 comments

Brief description of your issue

Some packages show up with gibberish sometimes, but not other times:

image

Makes it difficult to install based on --id.

Steps to reproduce

Search for a package using different word combinations.

Expected behavior

Id is the same every time and doesn't contain any gibberish.

Actual behavior

Id contains gibberish sometimes.

Environment

Windows Package Manager v1.7.11261
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.4412
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.11261.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

github-account1111 avatar May 17 '24 06:05 github-account1111

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar May 17 '24 06:05 github-actions[bot]

It seems the inconsistencies are related to the console width and the ID's being truncated. In some fonts the character appears as ..., but depending on system settings the character code could be different, resulting in the à that you're seeing.

image

  • Related to https://github.com/microsoft/winget-cli/issues/2603

Trenly avatar May 18 '24 05:05 Trenly

Yes, check your font and also make sure to use UTF-8. UTF8 should be on by default in Win-10/11 but if you messed with it...

eabase avatar May 30 '24 10:05 eabase

Yes, check your font and also make sure to use UTF-8. UTF8 should be on by default in Win-10/11 but if you messed with it...

Yes, I even made sure to make UTF-8 the default for all languages:

image

github-account1111 avatar May 31 '24 03:05 github-account1111