mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Update comments about how locale settings are handled.
This commit is contained in:
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.61 2003/08/04 02:39:59 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.62 2003/09/09 15:19:31 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -123,13 +123,12 @@ main(int argc, char *argv[])
|
|||||||
new_argv[argc] = NULL;
|
new_argv[argc] = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up locale information from environment. Note that CTYPE and
|
* Set up locale information from environment. Note that LC_CTYPE and
|
||||||
* COLLATE will be overridden later from pg_control if we are in an
|
* LC_COLLATE will be overridden later from pg_control if we are in an
|
||||||
* already-initialized database. We set them here so that they will
|
* already-initialized database. We set them here so that they will
|
||||||
* be available to fill pg_control during initdb. The other ones will
|
* be available to fill pg_control during initdb. LC_MESSAGES will get
|
||||||
* get reset later in InitializeGUCOptions, but we set them here to
|
* set later during GUC option processing, but we set it here to allow
|
||||||
* get already localized behavior during startup (e.g., error
|
* startup error messages to be localized.
|
||||||
* messages).
|
|
||||||
*/
|
*/
|
||||||
setlocale(LC_COLLATE, "");
|
setlocale(LC_COLLATE, "");
|
||||||
setlocale(LC_CTYPE, "");
|
setlocale(LC_CTYPE, "");
|
||||||
@ -138,8 +137,8 @@ main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We don't use these during startup. See also pg_locale.c about why
|
* We keep these set to "C" always, except transiently in pg_locale.c;
|
||||||
* these are set to "C".
|
* see that file for explanations.
|
||||||
*/
|
*/
|
||||||
setlocale(LC_MONETARY, "C");
|
setlocale(LC_MONETARY, "C");
|
||||||
setlocale(LC_NUMERIC, "C");
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
Reference in New Issue
Block a user