bitwarden / bitwarden/clients

Wrong encoding when listing ssh key via ssh-add -L

Open
#14,643 5 comments 0 reactions 1 assignee Claimed by @neuronull View on GitHub
bug desktop
Dominant language
TypeScript
Stars
13.8k
Forks
2k
Avg merge
3d 9h
Merged PRs (30d)
397

Description

### Steps To Reproduce

If your system is not Simplified Chinese, run `chcp 936` first to change to `GBK` encoding first.

1. Add a ssh key with chinese name in Bitwarden Desktop
2. type command `ssh-add -L` in command prompt

### Expected Result

Correctly output Chinese "黑鸡"

### Actual Result

The actual output is "榛戦浮"

### Screenshots or Videos

![Image](https://github.com/user-attachments/assets/42bca6b7-85c4-4a18-a1a8-f196475366d1)

### Additional Context

Default encoding of command prompt / powershell is **GBK** on Windows 11 Simplified Chinese.

### Operating System

Windows

### Operating System Version

Windows 11 Simplified Chinese

### Installation method

Direct Download (from bitwarden.com)

### Build Version

2025.4.2

### Issue Tracking Info

- [x] I understand that work is tracked outside of GitHub. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.