summaryrefslogtreecommitdiff
path: root/src/include/utils/pg_locale.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-09-29 21:16:30 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-09-29 21:16:30 +0000
commit8ca61476e0c6fb73e17c405d46cae701c7b7d959 (patch)
treeb60fcd79611af80fa100e8b8ddb714fc517c512a /src/include/utils/pg_locale.h
parentdc05a996c519bac1889aec1b3e7c63fd7d942dfc (diff)
downloadpostgresql-8ca61476e0c6fb73e17c405d46cae701c7b7d959.tar.gz
Cope with the likelihood that setlocale and localeconv will return
pointers to data that will be changed by any later call to setlocale. Must copy what they return to be sure we get the right answer. Karel Zak, further tweaks by Tom Lane.
Diffstat (limited to 'src/include/utils/pg_locale.h')
-rw-r--r--src/include/utils/pg_locale.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h
index 062806bc39..d6257b7654 100644
--- a/src/include/utils/pg_locale.h
+++ b/src/include/utils/pg_locale.h
@@ -4,7 +4,7 @@
* The PostgreSQL locale utils.
*
*
- * $Id: pg_locale.h,v 1.7 2001/03/22 04:01:14 momjian Exp $
+ * $Id: pg_locale.h,v 1.8 2001/09/29 21:16:30 tgl Exp $
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
*
@@ -33,8 +33,14 @@ typedef struct PG_LocaleCategories
*lc_messages;
} PG_LocaleCategories;
-
+/*
+ * Save locale category settings into PG memory
+ */
extern void PGLC_current(PG_LocaleCategories * lc);
+/*
+ * Free memory allocated in PGLC_current()
+ */
+extern void PGLC_free_categories(PG_LocaleCategories * lc);
/*------
* Return the POSIX lconv struct (contains number/money formatting information)