git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Whitespace and '&nbsp'
@ 2011-05-26 21:12 Linus Torvalds
  2011-05-26 21:57 ` Junio C Hamano
  0 siblings, 1 reply; 15+ messages in thread
From: Linus Torvalds @ 2011-05-26 21:12 UTC (permalink / raw)
  To: Junio C Hamano, Git Mailing List

So I just got a patch that had a hidden &nbsp in it (unicode: u00a0,
utf-8: \0302\0240) and sad to say my terminal window shows no
indication of that what-so-ever. It looks exactly like a regular
space, except gcc won't actually accept it.

So I'm wondering whether git shouldn't be escaping things like that in
diffs, for example. Looking at binary noise (using "git diff --text"),
I notice we have other things that don't get escaped either, although
at least then "less" will escape it for us. Again, for &nbsp, less
doesn't show it any different than a regular space either.

Yeah, I'm sure there is some programming font out there that makes it
visible, but I do wonder whether git should help.

I even used "--whitespace=fix" to apply the patch, but git doesn't
even recognize the thing as whitespace, so that didn't make any real
difference.

                          Linus

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

end of thread, other threads:[~2011-05-30 12:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-26 21:12 Whitespace and '&nbsp' Linus Torvalds
2011-05-26 21:57 ` Junio C Hamano
2011-05-26 22:08   ` Linus Torvalds
2011-05-27 16:50     ` Andreas Schwab
2011-05-27 17:01       ` Linus Torvalds
2011-05-27 18:31         ` Junio C Hamano
2011-05-27 19:15           ` Junio C Hamano
2011-05-27 21:14             ` Linus Torvalds
2011-05-27 22:47               ` Junio C Hamano
2011-05-27 22:48                 ` [PATCH 1/3] ws.c: add a helper to format comma separated messages Junio C Hamano
2011-05-27 22:49                 ` [PATCH 2/3] War on nbsp: a bit of retreat Junio C Hamano
2011-05-27 22:51                 ` [PATCH 3/3] War on nbsp: Add "nbsp" whitespace breakage class Junio C Hamano
2011-05-28  1:31                 ` [PATCH 4/3] War on nbsp: teach "git apply" to check and fix nbsp Junio C Hamano
2011-05-30 12:52                 ` Whitespace and '&nbsp' Daniel Nyström
2011-05-26 22:21   ` Matthieu Moy

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).