28 lines
898 B
Diff
28 lines
898 B
Diff
From cb52fa88d5f2d9bc4894a7eccd90fdc2e03f5af4 Mon Sep 17 00:00:00 2001
|
|
From: Bruno Haible <bruno@clisp.org>
|
|
Date: Tue, 4 Jul 2023 18:45:33 +0200
|
|
Subject: [PATCH] diff: Fix output of "diff -l -y" for non-ASCII input files
|
|
|
|
* src/side.c (print_half_line): Output the multibyte character to out,
|
|
not stdout.
|
|
---
|
|
src/side.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/side.c b/src/side.c
|
|
index 2f566f8..46ef095 100644
|
|
--- a/src/side.c
|
|
+++ b/src/side.c
|
|
@@ -146,7 +146,7 @@ print_half_line (char const *const *line, intmax_t indent, intmax_t out_bound)
|
|
if (in_position <= out_bound)
|
|
{
|
|
out_position = in_position;
|
|
- fwrite (tp0, 1, bytes, stdout);
|
|
+ fwrite (tp0, 1, bytes, out);
|
|
}
|
|
text_pointer = tp0 + bytes;
|
|
break;
|
|
--
|
|
2.34.1
|
|
|