veeso / termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB
https://termscp.veeso.dev
MIT License
1.61k stars 46 forks source link

[BUG] - Chinese file error #108

Closed LittleSheep2Code closed 2 years ago

LittleSheep2Code commented 2 years ago

Description

When my computer container a filename with a Chinese text, the termscp just crashed

Steps to reproduce

Create a file container Chinese text, then connect to server

Expected behaviour

TermSCP do not crash

Environment

Log

thread 'main' panicked at 'byte index 23 is not a char boundary; it is inside '终' (bytes 21..24) of `「汉字之趣」最终版.pptx`', src/explorer/formatter.rs:
308:37
      note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Additional information

No additional information

veeso commented 2 years ago

Duplicate of #104

veeso commented 2 years ago

PR #109