Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Callidior opened this issue May 19, 2020 · 5 comments
Closed
Assignees
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@Callidior
Copy link

Callidior commented May 19, 2020

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
@JohnMcPMS JohnMcPMS added the Issue-Bug It either shouldn't be doing this or needs an investigation. label May 19, 2020
@denelon denelon added this to the Package Manager Backlog milestone May 23, 2020
@tomgron
Copy link

tomgron commented Jun 1, 2020

Got this too :
image

@denelon denelon modified the milestones: Package Manager Backlog, Package Manager v0.2 Jun 2, 2020
@KristofKekesi
Copy link

me too (my username is Kristóf)

@Ed1123
Copy link

Ed1123 commented Jun 18, 2020

Any workaround?

@yao-msft
Copy link
Contributor

We plan to fix this in v0.2 milestone. Thanks.

@yao-msft
Copy link
Contributor

The fix should have been included with release v0.2.2521. Below is a working snapshot.

Capture

Please feel free to reopen the issue if the fix does not work as expected.

@denelon denelon modified the milestones: Package Manager v0.3.x, v1.0 - Windows Package Manager May 4, 2021
@denelon denelon added this to Done in Client-Current May 6, 2021
@denelon denelon removed this from Done in Client-Current Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

8 participants