Skip to content

fix(scoop): handle non-UTF-8 encoding in scoop list output#1255

Merged
fdncred merged 1 commit into
nushell:mainfrom
hhfgy1:main
May 23, 2026
Merged

fix(scoop): handle non-UTF-8 encoding in scoop list output#1255
fdncred merged 1 commit into
nushell:mainfrom
hhfgy1:main

Conversation

@hhfgy1
Copy link
Copy Markdown
Contributor

@hhfgy1 hhfgy1 commented May 23, 2026

Description

Fix tab completion failure for 'scoop list' on Windows when scoop output contains non-UTF-8 characters.

Problem

On Windows with non-UTF-8 locales (e.g., Chinese Windows using GBK encoding), the scoop list command may output text in the system's local encoding, causing the completion to fail silently.

Solution

Use decode utf-8 to properly handle the output encoding, ensuring the completion works correctly regardless of locale settings.

Testing

Tested on Windows with Chinese locale where scoop outputs GBK-encoded text.

@fdncred fdncred merged commit 57f49ad into nushell:main May 23, 2026
1 check passed
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented May 23, 2026

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants