Skip to content

The Chinese path cannot be used when using the hash command.File does not exist. #315

@masx200

Description

@masx200

Brief description of your issue

The Chinese path cannot be used when using the hash command.File does not exist.

Steps to reproduce

ls D:\迅雷下载\winrar-x64-590.exe
    目录: D:\迅雷下载


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        2020/5/24     18:23        3226248 winrar-x64-590.exe

 winget hash D:\迅雷下载\winrar-x64-590.exe

Expected behavior

 winget hash C:\Users\ma\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\AC\INetCache\KXK2CX9E\winrar-x64-590[1].exe
File Hash: af32c365c56b8a107af335fcb471298335a708d7ff803025e2b17b207c3d83ab

Actual behavior

File does not exist: D:\杩呴浄涓嬭浇\winrar-x64-590.exe

Environment

[winget --info]
Windows Package Manager version
Windows: Windows.Desktop version
Package: Microsoft.DesktopAppInstaller version

Any other software?
Windows Package Manager v0.1.41331 预览
Copyright (c) Microsoft Corporation. All rights reserved.

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

Links:
  Privacy Statement: https://aka.ms/winget-privacy
  License agreement: https://aka.ms/winget-license
  3rd Party Notices: https://aka.ms/winget-3rdPartyNotice
  Homepage:          https://aka.ms/winget

Metadata

Metadata

Assignees

No one assigned

    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