X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Futf8.pm;h=56c991bef9ad5f96988d0109c10d0a40404e422a;hb=b1fbf5c3d1dc6dd7934002da04dede2ae2e3ef65;hp=0b57d6d968600bade89c6eadf384a396ed006157;hpb=78ea37eb92d97de2362f1599aa0c3f43c5e70866;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/utf8.pm b/lib/utf8.pm index 0b57d6d..56c991b 100644 --- a/lib/utf8.pm +++ b/lib/utf8.pm @@ -2,7 +2,7 @@ package utf8; $utf8::hint_bits = 0x00800000; -our $VERSION = '1.03'; +our $VERSION = '1.06'; sub import { $^H |= $utf8::hint_bits; @@ -16,6 +16,7 @@ sub unimport { sub AUTOLOAD { require "utf8_heavy.pl"; goto &$AUTOLOAD if defined &$AUTOLOAD; + require Carp; Carp::croak("Undefined subroutine $AUTOLOAD called"); } @@ -60,7 +61,7 @@ useful for their own purposes, but they are not really part of the "pragmatic" effect. Until UTF-8 becomes the default format for source text, either this -pragma or the L pragma should be used to recognize UTF-8 +pragma or the L pragma should be used to recognize UTF-8 in the source. When UTF-8 becomes the standard source format, this pragma will effectively become a no-op. For convenience in what follows the term I is used to refer to UTF-8 on ASCII and ISO @@ -92,7 +93,7 @@ UTF-8. If you want to have such bytes and use utf8, you can disable utf8 until the end the block (or file, if at top level) by C. If you want to automatically upgrade your 8-bit legacy bytes to UTF-8, -use the L pragma instead of this pragma. For example, if +use the L pragma instead of this pragma. For example, if you want to implicitly upgrade your ISO 8859-1 (Latin-1) bytes to UTF-8 as used in e.g. C and C<\x{...}>, try this: