tail

Alan Bawden alan at csail.mit.edu
Mon May 9 17:31:37 EDT 2022


Marco Sulla <Marco.Sulla.Python at gmail.com> writes:

   On Mon, 9 May 2022 at 19:53, Chris Angelico <rosuav at gmail.com> wrote:
   ...
   Nevertheless, tail is a fundamental tool in *nix. It's fast and
   reliable. Also the tail command can't handle different encodings?

It definitely can't.  It works for UTF-8, and all the ASCII compatible
single byte encodings, but feed it a file encoded in UTF-16, and it will
sometimes screw up.  (And if you don't redirect the output away from
your terminal, and your terminal encoding isn't also set to UTF-16, you
will likely find yourself looking at gibberish -- but that's another
problem...)


More information about the Python-list mailing list