develooper Front page | perl.perl5.porters | Postings from March 2000

Todo-5.6 (utf8 file i/o)

Thread Next
From:
David Dyck
Date:
March 16, 2000 10:00
Subject:
Todo-5.6 (utf8 file i/o)
Message ID:
Pine.LNX.4.05.10003160909430.17342-100000@dd.tc.fluke.com

In Todo-5.6 under the Unicode support section it states:

    add support for I/O disciplines
        - a way to specify disciplines when opening things:
            open(F, "<:crlf :utf16", $file)


Is this what is required to get perl to read in a utf8 file

perl -e '$l=v333;printf STDERR "%vd\n", $l;print $l' | 
     perl -0777 -e '$l=<>;printf STDERR "%vd\n", $l'

I get

333
197.141

And I'd have expected  to see the second perl process print out
the same value as the first.


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