summaryrefslogtreecommitdiff
path: root/dquote.c
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2017-01-13 20:29:58 +0100
committerAbigail <abigail@abigail.be>2017-01-16 19:18:15 +0100
commitbfdc8cd3d5a81ab176f7d530d2e692897463c97d (patch)
tree685451f2fd81a09edcf0893ef2042a13502894f9 /dquote.c
parent838ba4df5dc7a6ea548005412fcf40feb86d2078 (diff)
downloadperl-bfdc8cd3d5a81ab176f7d530d2e692897463c97d.tar.gz
Deprecating the use of C<< \cI<X> >> to specify a printable character.
Starting in 5.14, we deprecated the use of "\cI<X>" when this results in a printable character. For instance, "\c:" is just a fancy way of writing "z". Starting in 5.28, this will be a fatal error. This also includes certain usage in regular expressions with the experimental (?[ ]) construct, or when "use re 'strict'" is in effect (also experimental).
Diffstat (limited to 'dquote.c')
-rw-r--r--dquote.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dquote.c b/dquote.c
index e02308e7ac..ef030468c0 100644
--- a/dquote.c
+++ b/dquote.c
@@ -46,10 +46,10 @@ Perl_grok_bslash_c(pTHX_ const char source, const bool output_warning)
clearer[i++] = result;
clearer[i++] = '\0';
- Perl_ck_warner(aTHX_ packWARN(WARN_SYNTAX),
- "\"\\c%c\" is more clearly written simply as \"%s\"",
- source,
- clearer);
+ Perl_ck_warner_d(aTHX_ packWARN2(WARN_SYNTAX,WARN_DEPRECATED),
+ "\"\\c%c\" is more clearly written simply as \"%s\". "
+ "This will be a fatal error in Perl 5.28",
+ source, clearer);
}
return result;