1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 03:12:25 +01:00

Fix for multibyte characters in file path

This commit is contained in:
Haris Mohamedy
2025-03-31 17:23:19 -07:00
parent f761ff6824
commit 18b71743c8
6 changed files with 27 additions and 6 deletions

0
tests/examples/test.A—B가 vendored Normal file
View File

View File

@@ -1600,6 +1600,17 @@ oken
.stderr("");
}
#[test]
fn header_narrow_terminal_with_multibyte_chars() {
bat()
.arg("--terminal-width=30")
.arg("--decorations=always")
.arg("test.A—B가")
.assert()
.success()
.stderr("");
}
#[test]
#[cfg(feature = "git")] // Expected output assumes git is enabled
fn header_default() {