This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Be consistent in deprecation messages.
authorAbigail <abigail@abigail.be>
Mon, 23 Jan 2017 21:29:19 +0000 (22:29 +0100)
committerAbigail <abigail@abigail.be>
Mon, 23 Jan 2017 21:29:19 +0000 (22:29 +0100)
Changed one deprecation message to not use a leading v in the Perl
version number, as the other deprecation messages don't have them
either.

pod/perldelta.pod
pod/perldiag.pod
t/lib/warnings/toke
toke.c

index f72776e..20393a4 100644 (file)
@@ -204,7 +204,10 @@ XXX Changes (i.e. rewording) of diagnostic messages go here
 
 =item *
 
-XXX Describe change here
+Use of unassigned code point or non-standalone grapheme for a delimiter will be a fatal error starting in Perl 5.30
+
+This was changed to drop a leading C<v> in C<v5.30>, so it uses the same
+style as other deprecation messages.
 
 =back
 
index 9038b2b..585c512 100644 (file)
@@ -7112,7 +7112,7 @@ but will become a fatal error in a future version of perl.  Untaint your
 arguments.  See L<perlsec>.
 
 =item Use of unassigned code point or non-standalone grapheme for a
-delimiter will be a fatal error starting in Perl v5.30
+delimiter will be a fatal error starting in Perl 5.30
 
 (D deprecated)
 A grapheme is what appears to a native-speaker of a language to be a
index fe8adc5..64b7a46 100644 (file)
@@ -1619,4 +1619,4 @@ BEGIN{
 use utf8;
 my $a = qr ̂foobar̂;
 EXPECT
-Use of unassigned code point or non-standalone grapheme for a delimiter will be a fatal error starting in Perl v5.30 at - line 8.
+Use of unassigned code point or non-standalone grapheme for a delimiter will be a fatal error starting in Perl 5.30 at - line 8.
diff --git a/toke.c b/toke.c
index 3f13f76..10669de 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -10412,7 +10412,7 @@ S_scan_str(pTHX_ char *start, int keep_bracketed_quoted, int keep_delims, int re
     const char * non_grapheme_msg = "Use of unassigned code point or"
                                     " non-standalone grapheme for a delimiter"
                                     " will be a fatal error starting in Perl"
-                                    " v5.30";
+                                    " 5.30";
     /* The only non-UTF character that isn't a stand alone grapheme is
      * white-space, hence can't be a delimiter.  So can skip for non-UTF-8 */
     bool check_grapheme = UTF && ckWARN_d(WARN_DEPRECATED);