[Bug] Panic: Invalid UTF-8 char boundary in string slicing with multi-byte characters

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Dec 17, 2025 · closed Dec 17, 2025

Bug Description
thread '<unnamed>' (119596) panicked at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\core\src\str\mod.rs:833:21:
byte index 5 is not a char boundary; it is inside '車' (bytes 3..6) of 物車)
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.0.71
  • Feedback ID: cce1e472-fc32-4c22-8526-22ba1662d79d

Errors

[]

View original on GitHub ↗

3 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14272
  2. https://github.com/anthropics/claude-code/issues/14133
  3. https://github.com/anthropics/claude-code/issues/14104

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

bouob · 10 months ago

The language I use is Traditional Chinese(繁體中文).

github-actions[bot] · 9 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.