dsh-bash-encoding

DSH bash 输出编码自动识别插件:替换 ctx.bash,自管 spawn 收集原始字节,自动检测 UTF-16LE/UTF-8/GBK 等编码并正确解码,修复 WSL/Windows 下 bash 工具的中文乱码。

PluginTerminalDesktopTerminal / Shell
Verification
L2 · Structured
Security
Pending
Health
Active
Trust
Bronze

What it doesAI

Automatically detects and decodes bash output encodings (UTF-16LE/UTF-8/GBK) to fix garbled Chinese text under WSL/Windows.

  • Replaces ctx.bash to manage subprocess spawn
  • Auto-detects UTF-16LE/UTF-8/GBK from raw bytes
  • Fixes Chinese mojibake for WSL/Windows bash

AI-generated from the repo README — for reference only.

Installation

dsh plugin --profile web add dsh-bash-encoding

Install method: npm · not yet tested in container (L3+)

Compatibility

DSH VersionStatus
not statedDeclared — not tested

Requirements

  • • Node.js: not stated
  • • DSH: declared "not stated"
  • • External credentials: none detected

Security Report

Automated scan, not manual review.

• Dependency vulnerabilities: — (pending)

• Suspicious permissions: — (pending)

• Hardcoded secrets: — (pending)

• Supply chain risks: — (pending)

⚠ Security audit scheduled — results will appear here after the next scan.

Activity

Last commit 2026-08-13 · activity: active

6 mo

Source

GitHub: github.com/lhh010/dsh-bash-encoding