Skip to content

Unable to install packages when user name contains non-ASCII characters #181

@Callidior

Description

@Callidior

Brief description of your issue

My windows user name is "Björn", and hence contains a non-ASCII character. When I try to install any package using winget, I receive an error message similar to the following one:

"C:\Users\Björn\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState\WinGet\gimp.gimp.2.10.18.exe" konnte nicht gefunden werden. Stellen Sie sicher, dass Sie den Namen richtig eingegeben haben und wiederholen Sie den Vorgang.

The specified path indeed does not exist. Replacing "Björn" with my correct username, "Björn", though, leads to the correct file downloaded by winget.

Steps to reproduce

  1. Log on with a Windows username containing non-ASCII characters.
  2. Open cmd.
  3. Run: winget install gimp.gimp -e

Expected behavior

winget should download the installer and execute it.

Actual behavior

winget downloads the installer, but fails to execute it, because it uses an invalid path for running the downloaded file. This leads to the following error message in a message box window:

"C:\Users\Björn\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState\WinGet\gimp.gimp.2.10.18.exe" konnte nicht gefunden werden. Stellen Sie sicher, dass Sie den Namen richtig eingegeben haben und wiederholen Sie den Vorgang.

On the command line, I get this message:

Installer failed with exit code: 1223

Environment

[winget --info]
Windows Package Manager v0.1.41331 Vorschau
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.18363.836
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Metadata

Metadata

Labels

Issue-BugIt either shouldn't be doing this or needs an investigation.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions