X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Futf8.pm;h=17ec37bbe21521067a12774b9ae448b820e53519;hb=3c32ced9076b91fe2c44bcada22c97a37d564b78;hp=3098fe21bd3d562ddcbaf4996d948e276514a50a;hpb=8058d7abf600e878367b422ec507695e4ac6f25a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/utf8.pm b/lib/utf8.pm index 3098fe2..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