Dear Evgeny, > With this change, it will print a warning if the input is not valid > UTF-8: > > $ echo $'\xff' | ./ts > utf8 "\xFF" does not map to Unicode at ./ts line 95. > янв 22 16:55:35 \xFF > > I don't know whether it's a serious problem, but I think that it's > better to pass input data without attempting to decode it.
good argument. Just another attempt (see attached patch). In my
opinion it is more a hack than a solution, but does it make 'ts' work
the way you want to?
Kind regards,
Nicolas
--
gpg key id: 55a0ce7f, epost: nicolas@(hjem.rpa.no|ip6.li)
↳ fpr: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f
-- frykten for herren er opphav til kunnskap --
diff --git a/ts b/ts
index 3ce73c9..63baf18 100755
--- a/ts
+++ b/ts
@@ -49,6 +49,7 @@ Licensed under the GNU GPL.
use warnings;
use strict;
use POSIX q{strftime};
+no warnings 'utf8';
$|=1;
signature.asc
Description: PGP signature

