Make printf, sprintf respect 'use locale' for radix
authorKarl Williamson <public@khwilliamson.com>
Sat, 24 Aug 2013 18:59:46 +0000 (12:59 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 31 Aug 2013 19:58:33 +0000 (13:58 -0600)
commite46375fad0ed9a24f5a8fbd13c2f6568d9b8eec9
tree33e3650b008f815a56e37e554cf9c50cc7433d3b
parent660c7bccb580daaa39f2b8b559fa0de7926fd65f
Make printf, sprintf respect 'use locale' for radix

When called from outside the lexical scope of 'use locale', these now
always print a dot for the decimal point character.

This change is actually done in Perl_sv_vcatpvfn_flags, which is common
to many things, but the principal external effect that I could determine
is on printf and sprintf.

Without this change, unrelated code can change the locale, thus
affecting what an unsuspecting application prints.
lib/locale.t
pod/perldelta.pod
sv.c