1313 *
1414 *
1515 * IDENTIFICATION
16- * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.61 2003/08/04 02:39:59 momjian Exp $
16+ * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.62 2003/09/09 15:19:31 tgl Exp $
1717 *
1818 *-------------------------------------------------------------------------
1919 */
@@ -123,13 +123,12 @@ main(int argc, char *argv[])
123123new_argv [argc ]= NULL ;
124124
125125/*
126- * Set up locale information from environment.Note thatCTYPE and
127- *COLLATE will be overridden later from pg_control if we are in an
126+ * Set up locale information from environment.Note thatLC_CTYPE and
127+ *LC_COLLATE will be overridden later from pg_control if we are in an
128128 * already-initialized database. We set them here so that they will
129- * be available to fill pg_control during initdb. The other ones will
130- * get reset later in InitializeGUCOptions, but we set them here to
131- * get already localized behavior during startup (e.g., error
132- * messages).
129+ * be available to fill pg_control during initdb. LC_MESSAGES will get
130+ * set later during GUC option processing, but we set it here to allow
131+ * startup error messages to be localized.
133132 */
134133setlocale (LC_COLLATE ,"" );
135134setlocale (LC_CTYPE ,"" );
@@ -138,8 +137,8 @@ main(int argc, char *argv[])
138137#endif
139138
140139/*
141- * Wedon't use theseduring startup. See also pg_locale.c about why
142- *these are set to "C" .
140+ * Wekeep theseset to "C" always, except transiently in pg_locale.c;
141+ *see that file for explanations .
143142 */
144143setlocale (LC_MONETARY ,"C" );
145144setlocale (LC_NUMERIC ,"C" );