X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Futf8.pm;h=17ec37bbe21521067a12774b9ae448b820e53519;hb=3c32ced9076b91fe2c44bcada22c97a37d564b78;hp=d9e9becdda5c9e5917296d33566132db3868c209;hpb=3969a89698ec7136fcf0eb1062fdf63f0e7726f4;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/utf8.pm b/lib/utf8.pm index d9e9bec..17ec37b 100644 --- a/lib/utf8.pm +++ b/lib/utf8.pm @@ -1,12 +1,14 @@ package utf8; +$utf8::hint_bits = 0x00800000; + sub import { - $^H |= 0x00800000; + $^H |= $utf8::hint_bits; $enc{caller()} = $_[1] if $_[1]; } sub unimport { - $^H &= ~0x00800000; + $^H &= ~$utf8::hint_bits; } sub AUTOLOAD { @@ -29,7 +31,7 @@ utf8 - Perl pragma to enable/disable UTF-8 in source code =head1 DESCRIPTION WARNING: The implementation of Unicode support in Perl is incomplete. -Expect sudden and unannounced changes! +See L for the exact details. The C pragma tells the Perl parser to allow UTF-8 in the program text in the current lexical scope. The C pragma @@ -70,6 +72,6 @@ of byte semantics. =head1 SEE ALSO -L, L +L, L =cut