Arrange to set the LC_XXX environment variables to match our locale

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ab51bbaa06b4363a7397a1f394902ad57ed52fc9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-12-28T23:22:51Z
Releases: 8.2.0
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).

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +4 −3
src/backend/main/main.c modified +19 −12
src/backend/utils/adt/pg_locale.c modified +120 −35
src/include/utils/pg_locale.h modified +3 −1