diff options
author | Hugo van der Sanden <hv@crypt.org> | 2003-02-10 21:59:34 +0000 |
---|---|---|
committer | hv <hv@crypt.org> | 2003-02-10 21:59:34 +0000 |
commit | 00e17364bade89e3a71981168e34fb6160652b0a (patch) | |
tree | d64cb961d5e077899fade678458033439c418904 /sv.c | |
parent | 71fc2216c6a4911ddf91f3da00b2e64b1face896 (diff) | |
download | perl-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |