summaryrefslogtreecommitdiff
path: root/lib/utf8.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-07 07:08:15 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-07 07:08:15 +0000
commit3969a89698ec7136fcf0eb1062fdf63f0e7726f4 (patch)
treeabeba671289226d1cb9b5858d8acfdeba9a3cb58 /lib/utf8.pm
parent154a3d541e7a9364fb47632cc34c63cdb1d8eda3 (diff)
downloadperl-3969a89698ec7136fcf0eb1062fdf63f0e7726f4.tar.gz
remove $^U dependent behaviors in runtime; chr() and sprintf('%c',...)
now return bytes all the way to 255, they will be transparently coerced (in future) to UTF-8 when they are used in operations involving other UTF-8 strings; C<use utf8> doesn't set $^U anymore p4raw-id: //depot/perl@5013
Diffstat (limited to 'lib/utf8.pm')
-rw-r--r--lib/utf8.pm15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/utf8.pm b/lib/utf8.pm
index be7cc0bf0c..d9e9becdda 100644
--- a/lib/utf8.pm
+++ b/lib/utf8.pm
@@ -1,8 +1,5 @@
package utf8;
-$^U = 1 if caller and caller eq 'main'; # they are unicode aware
- # XXX split this out?
-
sub import {
$^H |= 0x00800000;
$enc{caller()} = $_[1] if $_[1];
@@ -60,15 +57,6 @@ and package names.
=item *
-As a side effect, when this pragma is used within the main package,
-it also enables Unicode character semantics for the entire program.
-See L<perlunicode> for more on that.
-
-[XXX: split this out into separate "pragma" and/or -C command-line
-switch?]
-
-=item *
-
In the absence of inputs marked as UTF-8, regular expressions within the
scope of this pragma will default to using character semantics instead
of byte semantics.
@@ -80,9 +68,6 @@ of byte semantics.
@chars = split //, $data; # splits characters
}
-[XXX: Should this should be enabled like chr()/sprintf("%c") by looking
-at $^U instead?]
-
=head1 SEE ALSO
L<perlunicode>, L<byte>