Whitespace and '&nbsp'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]