Enable UTF-8 compatible processing of input and output to correctly output e.g. timestamps containing non-latin letters (cp. [1]).
[1]: https://bugs.debian.org/848578 Signed-off-by: Nicolas Schier <nico...@fjasle.eu> --- ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts b/ts index af23cf7..fbd5b1a 100755 --- a/ts +++ b/ts @@ -54,6 +54,11 @@ use strict; use POSIX q{strftime}; no warnings 'utf8'; +# Ensure that text read or printed are converted from/to UTF-8. +binmode STDIN, ':utf8'; +binmode STDOUT, ':utf8'; +binmode STDERR, ':utf8'; + $|=1; my $rel=0; -- 2.30.2 -- epost|xmpp: nico...@fjasle.eu irc://oftc.net/nsc ↳ gpg: 18ed 52db e34f 860e e9fb c82b 7d97 0932 55a0 ce7f -- frykten for herren er opphav til kunnskap --
signature.asc
Description: PGP signature