From: Fredrik Kuivinen <freku045@student.liu.se>
To: git@vger.kernel.org
Cc: junkio@cox.net
Subject: [PATCH] Make sure the diff machinery outputs "\ No newline ..." in english
Date: Sun, 4 Sep 2005 20:17:24 +0200 [thread overview]
Message-ID: <20050904181724.GA23525@c165.ib.student.liu.se> (raw)
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);
}
next reply other threads:[~2005-09-04 18:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-04 18:17 Fredrik Kuivinen [this message]
2005-09-04 18:48 ` [PATCH] Make sure the diff machinery outputs "\ No newline ..." in english Junio C Hamano
2005-09-05 6:01 ` Fredrik Kuivinen
2005-09-05 15:52 ` Linus Torvalds
2005-09-06 20:05 ` Daniel Barkalow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050904181724.GA23525@c165.ib.student.liu.se \
--to=freku045@student.liu.se \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).