tail

Chris Angelico rosuav at gmail.com
Mon May 9 17:12:53 EDT 2022


On Tue, 10 May 2022 at 07:07, Barry <barry at barrys-emacs.org> wrote:
> POSIX tail just prints the bytes to the output that it finds between \n bytes.
> At no time does it need to care about encodings as that is a problem solved
> by the terminal software. I would not expect utf-16 to work with tail on
> linux systems.

UTF-16 ASCII seems to work fine on my system, which probably means the
terminal is just ignoring all the NUL bytes. But if there's a random
0x0A anywhere, it would probably be counted as a line break.

ChrisA


More information about the Python-list mailing list