Bug in a Open C's sprinf() function:
Test case: sprintf(to,"%g",12345.10 );
Expected result: 12345.1
Alternative implementation for this is available but it gives too many decimals instead of one so test_bug4172 fails because of this. Shouldn't be problem with mysql clients though.
As soon as fixed to Open C, alternative implementation can be removed.