Arrange to set the LC_XXX environment variables to match our locale
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |