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

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

Thread Previous | Thread Next
Gurusamy Sarathy
February 4, 2000 09:51
Re: C<use utf8> should never set $^U
Message ID:
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.


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

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


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About