develooper Front page | perl.perl5.porters | Postings from April 2012

Re: unicode question

Thread Previous | Thread Next
From:
Johan Vromans
Date:
April 26, 2012 10:33
Subject:
Re: unicode question
Message ID:
m24ns6csaj.fsf@phoenix.squirrel.nl
Jesse Luehrs <doy@tozt.net> writes:

> Why are you assuming that text is the only thing that people ever pipe
> to a program? Interpreting STDIN as UTF-8 would break something along
> the lines of a perl implementation of gzip, for instance.

I expect a Perl program that processes binary information from STDIN to
use an explicit binmode.

-- Johan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About