From d9ab981f33e1232c4279e1e009c93abfe29c9f8c Mon Sep 17 00:00:00 2001 From: Kushal S Date: Tue, 21 Jul 2026 12:41:09 +0530 Subject: [PATCH] numfmt: add --from=auto test for multibyte whitespace separator Rebased onto main after 7807c8d landed the panic fix for #13482. Adds pipe-input coverage for --from=auto with a U+3000 field separator. Co-authored-by: Cursor --- tests/by-util/test_numfmt.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/by-util/test_numfmt.rs b/tests/by-util/test_numfmt.rs index d20aaa0257..bdca3dfca2 100644 --- a/tests/by-util/test_numfmt.rs +++ b/tests/by-util/test_numfmt.rs @@ -439,6 +439,12 @@ fn test_field_with_multibyte_whitespace_separator() { .args(&["--field", "2", "1 2"]) .succeeds() .stdout_only("1 2\n"); + + new_ucmd!() + .args(&["--from=auto", "--field", "2"]) + .pipe_in("1K\u{3000}2K\n") + .succeeds() + .stdout_only("1K 2000\n"); } #[test]