This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change deprecation warning text
authorKarl Williamson <khw@cpan.org>
Wed, 16 Dec 2015 00:47:27 +0000 (17:47 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 16 Dec 2015 19:14:46 +0000 (12:14 -0700)
The old text used the passive voice.  No 5.23 release has been made with
the old text, so no perldelta changes are needed.

pod/perldiag.pod
t/lib/warnings/utf8
utf8.c

index 02f9237..6d05072 100644 (file)
@@ -3018,20 +3018,6 @@ an anonymous subroutine, or a reference to a subroutine.
 (W overload) You tried to overload a constant type the overload package is
 unaware of.
 
-=item It is deprecated to use code point 0x%s; the permissible max is 0x%s
-
-(D deprecated) You used a code point that will not be allowed in a
-future perl version, because it is too large.  Unicode only allows code
-points up to 0x10FFFF, but Perl allows much larger ones.  However, the
-largest possible ones break the perl interpreter in some constructs,
-including causing it to hang in a few cases.  The known problem areas
-are in C<tr///>, regular expression pattern matching using quantifiers,
-and as the upper limits in loops.
-
-If your code is to run on various platforms, keep in mind that the upper
-limit depends on the platform.  It is much larger on 64-bit word sizes
-than 32-bit ones.
-
 =item -i used with no filenames on the command line, reading from STDIN
 
 (S inplace) The C<-i> option was passed on the command line, indicating
@@ -6677,6 +6663,20 @@ modifier is not presently meaningful in substitutions.
 use the /g modifier.  Currently, /c is meaningful only when /g is
 used.  (This may change in the future.)
 
+=item Use of code point 0x%s is deprecated; the permissible max is 0x%s
+
+(D deprecated) You used a code point that will not be allowed in a
+future perl version, because it is too large.  Unicode only allows code
+points up to 0x10FFFF, but Perl allows much larger ones.  However, the
+largest possible ones break the perl interpreter in some constructs,
+including causing it to hang in a few cases.  The known problem areas
+are in C<tr///>, regular expression pattern matching using quantifiers,
+and as the upper limits in loops.
+
+If your code is to run on various platforms, keep in mind that the upper
+limit depends on the platform.  It is much larger on 64-bit word sizes
+than 32-bit ones.
+
 =item Use of comma-less variable list is deprecated
 
 (D deprecated) The values you give to a format should be
index 78fa022..e8c8527 100644 (file)
@@ -746,14 +746,14 @@ print $fh $to_warn_char, "\n";
 close $fh;
 EXPECT
 OPTION regex
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ at - line \d+.
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ in pattern match \(m//\) at - line \d+.
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ in regexp compilation at - line \d+.
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ in regexp compilation at - line \d+.
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ at - line \d+.
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ in regexp compilation at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ in pattern match \(m//\) at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ in regexp compilation at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ in regexp compilation at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ in regexp compilation at - line \d+.
 Operation "uc" returns its argument for non-Unicode code point 0x7F+ at - line \d+.
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ at - line \d+.
 Operation "uc" returns its argument for non-Unicode code point 0x80+ at - line \d+.
 Code point 0x7F+ is not Unicode, may not be portable in print at - line \d+.
-It is deprecated to use code point 0x80+; the permissible max is 0x7F+ in print at - line \d+.
+Use of code point 0x80+ is deprecated; the permissible max is 0x7F+ in print at - line \d+.
diff --git a/utf8.c b/utf8.c
index 380d6ac..45ee51e 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -36,7 +36,7 @@
 static const char unees[] =
     "Malformed UTF-8 character (unexpected end of string)";
 static const char cp_above_legal_max[] =
   "It is deprecated to use code point 0x%"UVXf"; the permissible max is 0x%"UVXf"";
"Use of code point 0x%"UVXf" is deprecated; the permissible max is 0x%"UVXf"";
 
 #define MAX_NON_DEPRECATED_CP (IV_MAX)