From: Andreas Schwab <schwab@linux-m68k.org>
To: "Jason Pyeron" <jpyeron@pdinc.us>
Cc: "'Joris Valette'" <joris.valette@gmail.com>, <git@vger.kernel.org>
Subject: Re: Consider escaping special characters like 'less' does
Date: Sun, 15 Oct 2017 17:46:55 +0200 [thread overview]
Message-ID: <87zi8sxvkg.fsf@linux-m68k.org> (raw)
In-Reply-To: <773EDE3B5FDB48AD8FB0DB048CAEC8DE@blackfat> (Jason Pyeron's message of "Sun, 15 Oct 2017 10:15:52 -0400")
On Okt 15 2017, "Jason Pyeron" <jpyeron@pdinc.us> wrote:
>> -----Original Message-----
>> From: Joris Valette
>> Sent: Sunday, October 15, 2017 9:34 AM
>> To: git@vger.kernel.org
>> Subject: Consider escaping special characters like 'less' does
>>
>> The pager 'less' escapes some characters when calling 'git diff'. This
>> is what I might get:
>>
>> $ git diff --cached
>> diff --git a/some_file b/some_file
>> new file mode 100644
>> index 0000000..357323f
>> --- /dev/null
>> +++ b/some_file
>> @@ -0,0 +1 @@
>> +<U+FEFF>Hello
>> \ No newline at end of file
>>
>> This example is a simple file encoded in UTF-8 *with BOM*.
>> On the other hand, the built-in git output shows this:
>>
>> $ git --no-pager diff --cached
>> diff --git a/some_file b/some_file
>> new file mode 100644
>> index 0000000..357323f
>> --- /dev/null
>> +++ b/some_file
>> @@ -0,0 +1 @@
>> +?Hello
>> \ No newline at end of file
>
> It is your terminal, not git's fault that you get a ? rendered.
It's your MUA's fault that you get a ?, the mail didn't contain any.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2017-10-15 15:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-15 13:33 Consider escaping special characters like 'less' does Joris Valette
2017-10-15 14:15 ` Jason Pyeron
2017-10-15 15:46 ` Andreas Schwab [this message]
2017-10-15 16:39 ` Joris Valette
2017-10-15 20:06 ` Jeff King
2017-10-15 21:37 ` Joris Valette
2017-10-16 22:13 ` Jeff King
2017-10-16 22:47 ` Andreas Schwab
2017-10-16 22:58 ` Jeff King
2017-10-17 1:13 ` Junio C Hamano
2017-10-17 2:45 ` Jeff King
2017-10-22 12:27 ` Jason Pyeron
2017-10-23 0:45 ` Jeff King
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=87zi8sxvkg.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=git@vger.kernel.org \
--cc=joris.valette@gmail.com \
--cc=jpyeron@pdinc.us \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.