summaryrefslogtreecommitdiff
path: root/src/tutorial/complex.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-09-25 00:00:33 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-09-25 00:01:08 -0400
commit60617d7d680e46e45126baa98c6e20728300c893 (patch)
treef61cc1df3031f6e658553e4993c831c1da343c00 /src/tutorial/complex.source
parent596c9e9efdbef0b0a597f3c8df478e51a50729e3 (diff)
Further fix for psql's code for locale-aware formatting of numeric output.
On closer inspection, those seemingly redundant atoi() calls were not so much inefficient as just plain wrong: the author of this code either had not read, or had not understood, the POSIX specification for localeconv(). The grouping field is *not* a textual digit string but separate integers encoded as chars. We'll follow the existing code as well as the backend's cash.c in only honoring the first group width, but let's at least honor it correctly. This doesn't actually result in any behavioral change in any of the locales I have installed on my Linux box, which may explain why nobody's complained; grouping width 3 is close enough to universal that it's barely worth considering other cases. Still, wrong is wrong, so back-patch.
Diffstat (limited to 'src/tutorial/complex.source')
0 files changed, 0 insertions, 0 deletions