RT #122437 fix sprintf regression

The " " and "+" flags weren't being taken into account for floating
point numbers.  Added checks for these flags and some tests.