summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2005-01-11 15:48:49 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-01-11 17:04:24 +0000
commit5dab111222565c0d3e830afa5145b2b61eb6bf29 (patch)
treec4be692ef5ebf757bdf6bb1fa4d40cd94690c4f4 /sv.c
parent289b58f75906a5d72af9c593e2b49622171371fa (diff)
downloadperl-5dab111222565c0d3e830afa5145b2b61eb6bf29.tar.gz
follow-up to 23767
Message-ID: <533D273D4014D411AB1D00062938C4D90849C56A@hotel.npl.co.uk> p4raw-id: //depot/perl@23781
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sv.c b/sv.c
index 6fc5588b83..470d483f64 100644
--- a/sv.c
+++ b/sv.c
@@ -9615,14 +9615,16 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
#ifdef CHECK_FORMAT
if (left) {
left = FALSE;
- if (width > 0) {
+ if (!width)
+ goto format_sv; /* %-p -> %_ */
+ if (vectorize) {
width = 0;
- if (vectorize)
- goto format_d;
- precis = width;
- has_precis = TRUE;
+ goto format_d; /* %-1p -> %vd */
}
- goto format_sv;
+ precis = width;
+ has_precis = TRUE;
+ width = 0;
+ goto format_sv; /* %-Np -> %.N_ */
}
#endif
if (alt || vectorize)