On 22.01.2016 09:01, Nicolas Schier wrote:
Dear Evgeny,

I can get rid of the 'Wide character...' warning by adding the line

        use open ':locale';

(cp. attached patch).  Could you please check whether this is
sufficient for you?  Unfortunately, the 'ts -r' does not work for
ru_RU.*...

Kind regards,
Nicolas

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.

Reply via email to