diff options
author | Brian Fraser <fraserbn@gmail.com> | 2012-03-22 18:03:11 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-03-22 20:23:56 -0700 |
commit | 5c66c3dde829c299f412b72bab2df6ea0f8afe02 (patch) | |
tree | 8addcfba1535b8211933ca51ccacd3f48d433aec /toke.c | |
parent | d0fb66e4dd07da2a32d4da479eecdd70515e9f20 (diff) | |
download | perl-5c66c3dde829c299f412b72bab2df6ea0f8afe02.tar.gz |
toke.c: "Ambiguous use of %c{%s} resolved to %c%s" cleanup.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -8964,13 +8964,15 @@ S_scan_ident(pTHX_ register char *s, register const char *send, char *dest, STRL if (PL_lex_state == LEX_NORMAL) { if (ckWARN(WARN_AMBIGUOUS) && (keyword(dest, d - dest, 0) - || get_cvn_flags(dest, d - dest, 0))) + || get_cvn_flags(dest, d - dest, UTF ? SVf_UTF8 : 0))) { + SV *tmp = newSVpvn_flags( dest, d - dest, + SVs_TEMP | (UTF ? SVf_UTF8 : 0) ); if (funny == '#') funny = '@'; Perl_warner(aTHX_ packWARN(WARN_AMBIGUOUS), - "Ambiguous use of %c{%s} resolved to %c%s", - funny, dest, funny, dest); + "Ambiguous use of %c{%"SVf"} resolved to %c%"SVf, + funny, tmp, funny, tmp); } } } |