Kirk Wolak <wol...@gmail.com> writes: > Did you try the print statement that Andrey asked Pavel to try?
Yeah, and I get exactly the results I expect: $ cat test.pl use locale; my $result = sprintf('SELECT 1 \watch c=3 i=%g', 0.01); print ">>$result<<\n"; $ LANG=cs_CZ.utf8 perl test.pl >>SELECT 1 \watch c=3 i=0,01<< $ LANG=C perl test.pl >>SELECT 1 \watch c=3 i=0.01<< regards, tom lane