]> granicus.if.org Git - postgresql/commit
Further fix for psql's code for locale-aware formatting of numeric output.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Sep 2015 16:20:46 +0000 (12:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Sep 2015 16:20:46 +0000 (12:20 -0400)
commit98d8c75f9f15a3718214c2fbfda9919f3dcfd274
treeafa7595a03bdc60c6e0d3799e45ba309619b1e85
parent71763ecff64cecc78384ef44c720f6e95db05f31
Further fix for psql's code for locale-aware formatting of numeric output.

(Third time's the charm, I hope.)

Additional testing disclosed that this code could mangle already-localized
output from the "money" datatype.  We can't very easily skip applying it
to "money" values, because the logic is tied to column right-justification
and people expect "money" output to be right-justified.  Short of
decoupling that, we can fix it in what should be a safe enough way by
testing to make sure the string doesn't contain any characters that would
not be expected in plain numeric output.
src/bin/psql/print.c