pgsql/src/backend/utils/adt (pg_locale.c cash.c)

From: tgl(at)postgresql(dot)org
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/utils/adt (pg_locale.c cash.c)
Date: 2000-11-25 22:43:08
Message-ID: 200011252243.eAPMh8W79903@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Saturday, November 25, 2000 @ 17:43:08
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/adt
from hub.org:/home/projects/pgsql/tmp/cvs-serv79887/backend/utils/adt

Modified Files:
pg_locale.c cash.c

----------------------------- Log Message -----------------------------

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.

Browse pgsql-committers by date

  From Date Subject
Next Message ishii 2000-11-26 10:40:44 pgsql/src/backend/utils/mb/Unicode (UCS_to_8859.pl iso8859_2_to_utf8.map iso8859_3_to_utf8.map iso8859_4_to_utf8.map iso8859_5_to_utf8.map utf8_to_iso8859_2.map utf8_to_iso8859_3.map utf8_to_iso8859_4.map utf8_to_iso8859_5.map)
Previous Message tgl 2000-11-25 22:43:07 pgsql/src/include/utils (pg_locale.h)