summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2003-02-10 21:59:34 +0000
committerhv <hv@crypt.org>2003-02-10 21:59:34 +0000
commit00e17364bade89e3a71981168e34fb6160652b0a (patch)
treed64cb961d5e077899fade678458033439c418904 /sv.c
parent71fc2216c6a4911ddf91f3da00b2e64b1face896 (diff)
downloadperl-00e17364bade89e3a71981168e34fb6160652b0a.tar.gz
Fix for [perl #20339]: "%lf" rejected as invalid by recent sprintf.
Now allows but ignores the 'l' modifier on floating point formats and adds a couple of tests. p4raw-id: //depot/perl@18689
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 6eef6264cc..37e1492816 100644
--- a/sv.c
+++ b/sv.c
@@ -8813,6 +8813,9 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
intsize = 'q';
#endif
break;
+/* [perl #20339] - we should accept and ignore %hf, %lf rather than die */
+ case 'l':
+ /* FALL THROUGH */
default:
#if defined(USE_LONG_DOUBLE)
intsize = args ? 0 : 'q';
@@ -8825,8 +8828,6 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
/* FALL THROUGH */
#endif
case 'h':
- /* FALL THROUGH */
- case 'l':
goto unknown;
}