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

Re: C<use utf8> should never set $^U

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
February 4, 2000 09:51
Subject:
Re: C<use utf8> should never set $^U
Message ID:
200002041752.JAA30959@maul.activestate.com
On Fri, 04 Feb 2000 08:10:05 PST, Larry Wall wrote:
>Chip Salzenberg writes:
>: Having finally gotten around to reading perllocale, I find this
>: welcome feature:
>:     [...] if the C<$^U> global flag is set to C<1>, nearly all
>:     operations will use character semantics by default.
>
>Let's be clear about this.  According to my understanding, the purpose
>of $^U is to make all *interfaces* use utf8 by default.

Yup, that's the goal.  640 also uses $^U to skew the behavior of chr(200)
and sprintf("%c",200) the utf8 way, but that's going to go away.  (The
result of those will autoconvert at the point of use/catenation/whatever.)

>                                                         By default
>operations are always polymorphic, and we only bend the default in the
>direction of bytes.

Yes.

>My goal is to turn the utf8 pragma into a no-op, [...]

Hey, that's exactly what I say in perlunicode.pod. :-)


Sarathy
gsar@ActiveState.com

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