Now allows but ignores the 'l' modifier on floating point formats
and adds a couple of tests.
p4raw-id: //depot/perl@18689
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';
/* FALL THROUGH */
#endif
case 'h':
- /* FALL THROUGH */
- case 'l':
goto unknown;
}
>%.0f< >-1.6< >-2<
>%.0f< >1< >1<
>%#.0f< >1< >1.<
+>%.0lf< >1< >1< >'l' should have no effect<
+>%.0hf< >1< >%.0hf INVALID< >'h' should be rejected<
>%g< >12345.6789< >12345.7<
>%+g< >12345.6789< >+12345.7<
>%#g< >12345.6789< >12345.7<