tauri-apps / tauri-apps/plugins-workspace

[bug][shell][v2]: incorrect stdout encoding

Open
#1,471 3 comments 0 reactions 0 assignees View on GitHub
plugin: shell type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

I use sidecar in v2 project to spawn `yt-dlp` from Rust with

```rust
let mut (rx, _) = app_handle.shell().sidecar(...);
spawn(async move {
while let Some(event) = rx.recv().await {
if let CommandEvent::Stdout(line: Vec) = event { ... } // line missing characters
}
});
```

Example sentence:
`[download] Destination: PEDRO - Jaxomy, Agatino Romero, Raffaella Carrà (TikTok Song) [XzilCu9PcZk].f616.mp4`
Notice the special character in `Carrà` the `à` will be missing in the lines.

tauri info

```rust
[✔] Environment
- OS: Windows 10.0.22631 X64
✔ WebView2: 125.0.2535.92
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.77.1 (7cf61ebde 2024-03-27)
✔ cargo: 1.77.1 (e52e36006 2024-03-26)
✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 20.12.0
- npm: 10.5.0
- bun: 1.1.10

[-] Packages
- tauri [RUST]: 2.0.0-beta.22
- tauri-build [RUST]: 2.0.0-beta.17
- wry [RUST]: 0.40.1
- tao [RUST]: 0.28.1
- @tauri-apps/api [NPM]: 2.0.0-beta.13
- @tauri-apps/cli [NPM]: 2.0.0-beta.20

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
```

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.