summaryrefslogtreecommitdiff
path: root/src/include/utils/pg_locale.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-28 23:22:51 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-28 23:22:51 +0000
commitab51bbaa06b4363a7397a1f394902ad57ed52fc9 (patch)
treefce620abf844eac5ad32b471935665f2951f7326 /src/include/utils/pg_locale.h
parentb6c881ce6227e239f59e07a177208841b14d1ec6 (diff)
downloadpostgresql-ab51bbaa06b4363a7397a1f394902ad57ed52fc9.tar.gz
Arrange to set the LC_XXX environment variables to match our locale
setup. This protects against undesired changes in locale behavior if someone carelessly does setlocale(LC_ALL, "") (and we know who you are, perl guys).
Diffstat (limited to 'src/include/utils/pg_locale.h')
-rw-r--r--src/include/utils/pg_locale.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h
index ef138d1bcb..7be6c24886 100644
--- a/src/include/utils/pg_locale.h
+++ b/src/include/utils/pg_locale.h
@@ -2,7 +2,7 @@
*
* PostgreSQL locale utilities
*
- * $PostgreSQL: pgsql/src/include/utils/pg_locale.h,v 1.20 2005/03/16 00:02:49 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/pg_locale.h,v 1.21 2005/12/28 23:22:51 tgl Exp $
*
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
*
@@ -31,6 +31,8 @@ extern const char *locale_numeric_assign(const char *value,
extern const char *locale_time_assign(const char *value,
bool doit, GucSource source);
+extern char *pg_perm_setlocale(int category, const char *locale);
+
extern bool lc_collate_is_c(void);
extern bool lc_ctype_is_c(void);