develooper Front page | perl.perl5.porters | Postings from August 2021

Re: "use v5.36.0" should imply UTF-8 encoded source

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
August 2, 2021 08:12
Subject:
Re: "use v5.36.0" should imply UTF-8 encoded source
Message ID:
CAHhgV8gGWcmdr6w2cVO0twm_8s3iTbZz2pHpOQDx41CN04J=HA@mail.gmail.com
On Mon, Aug 2, 2021 at 2:35 AM Felipe Gasper <felipe@felipegasper.com>
wrote:

> Code is indeed text, but this is not reasonable:
>
> > perl -Mutf8 -e'print "é"'
> �
>
> … particularly in contrast to this:
>
> > echo é | perl -Mutf8 -e 'print <>'
> é
>
> … and these:
>
> > node -e 'console.log("é")'
> é
>
> > python -c 'print("é")'
> é
>
> > ruby -e 'puts "é"'
> é
>
> > echo '<?php print "é" ?>' | php
> é
>
> > echo | awk '{print "é"}'
> é
>
> > julia -e'print("é")'
> é
>
> > lua -e'print "é"'
> é
>

I don't think the proposal said anything about -e or -E

Leon

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