From: Junio C Hamano Date: Mon, 22 Aug 2011 23:21:44 GMT Subject: Re: [PATCH] gitweb: highlight: strip non-printable characters via col(1) Message-ID: <7vmxf1t4l3.fsf@alter.siamese.dyndns.org> In-Reply-To: <1314053923-13122-1-git-send-email-cfuhrman@panix.com> "Christopher M. Fuhrman" writes: > Strip non-printable control-characters by piping the output produced > by git-cat-file(1) to col(1) as follows: > > git cat-file blob deadbeef314159 | col -bx | highlight > > Note usage of the '-x' option which tells col(1) to output multiple > spaces instead of tabs. Are all implementations of col known to correctly handle bytes with their highest bit on, without mistaking them with unknown control sequences? Has the code updated by your patch been tested with non-ASCII payload, at least with UTF-8 outside US-ASCII? In what locale does the code updated by your patch run under, and would the use of "col" affected by the choice of the locale in a negative way? For example, here is what I get on my box: $ LANG=C LC_ALL=C col -bx I haven't gotten any responses to my patch for a while, so I am now > submitting this for general inclusion into git. Unfortunately, no news is not good news around here, and that is why I am asking you the above questions. Thanks.