diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-25 22:43:08 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-25 22:43:08 +0000 |
commit | e3269cab31613d3e11522e7c8009736f2b3797ec (patch) | |
tree | 2b43bf63fdb380ed4960da40bcf27ff60cbc2cec /src/backend/regex/regex.3 | |
parent | 74dc04a034bc32f45738541f88e2d5e9e322cf59 (diff) | |
download | postgresql-e3269cab31613d3e11522e7c8009736f2b3797ec.tar.gz postgresql-e3269cab31613d3e11522e7c8009736f2b3797ec.zip |
Make PGLC_setlocale() static, and document that it can't be used safely
for any other purpose than PGLC_localeconv()'s internal save/restore of
locale settings. Fix cash.c to call PGLC_localeconv() rather than
making a direct call to localeconv() --- the old way, if PGLC_localeconv()
had already cached a locale result, it would be overwritten by the first
cash_in or cash_out operation, leading to wrong-locale results later.
Probably no demonstrable bug today, since we only appear to be looking
at the LC_MONETARY results which should be the same anyway, but definitely
a gotcha waiting to strike.
Diffstat (limited to 'src/backend/regex/regex.3')
0 files changed, 0 insertions, 0 deletions