On Sat, Jun 24, 2017 at 1:59 PM, Russ Allbery <r...@debian.org> wrote:
> Russ Allbery <r...@debian.org> writes:
>
>> I did a bit more research, and apparently this approach has become more
>> blessed again...
>
> Okay, I experimented with this, but unfortunately less displays the BOM at
> the start of the file as a very ugly reverse-video <U+FEFF> at the top of
> the screen.
>
> I think this is arguably a bug in less...

I just noticed that this less bug was reported in Debian 2008 and is still open:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473227

Earlier today, I sent the GNU less maintainer a two-line patch to the
"charset.c" file after my original email to him.  The patch prevents
the BOM from printing, but less still echoes the BOM correctly to an
output device that is not a terminal (output file, pipe, etc.).

I attached the patch file to bug report number 473227 so that the
Debian less maintainer could have access to it before the GNU less
maintainer has a chance to incorporate it (if he decides to).


Paul Hardy

Reply via email to