git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Make sure the diff machinery outputs "\ No newline ..." in english
@ 2005-09-04 18:17 Fredrik Kuivinen
  2005-09-04 18:48 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Fredrik Kuivinen @ 2005-09-04 18:17 UTC (permalink / raw)
  To: git; +Cc: junkio

In non-english locales diff(1) do sometimes output "\ No newline at end of
file" in some other language. Set LC_ALL to C before execing diff to avoid
this behaviour.

Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>


---

 diff.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

eb6261334d65c3134d9dd822fd64e33ed8ad2dfc
diff --git a/diff.c b/diff.c
--- a/diff.c
+++ b/diff.c
@@ -207,6 +207,7 @@ static void builtin_diff(const char *nam
 		}
 	}
 	fflush(NULL);
+	putenv("LC_ALL=C");
 	execlp("/bin/sh","sh", "-c", cmd, NULL);
 }
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-06 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-04 18:17 [PATCH] Make sure the diff machinery outputs "\ No newline ..." in english Fredrik Kuivinen
2005-09-04 18:48 ` Junio C Hamano
2005-09-05  6:01   ` Fredrik Kuivinen
2005-09-05 15:52     ` Linus Torvalds
2005-09-06 20:05       ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).