Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0bfe7f

Browse files
committed
Update comments about how locale settings are handled.
1 parent62b53ac commitd0bfe7f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎src/backend/main/main.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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[])
123123
new_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
*/
134133
setlocale(LC_COLLATE,"");
135134
setlocale(LC_CTYPE,"");
@@ -138,8 +137,8 @@ main(int argc, char *argv[])
138137
#endif
139138

140139
/*
141-
* Wedon't usetheseduring startup. See alsopg_locale.c about why
142-
*these are set to "C".
140+
* Wekeeptheseset to "C" always, except transiently inpg_locale.c;
141+
*see that file for explanations.
143142
*/
144143
setlocale(LC_MONETARY,"C");
145144
setlocale(LC_NUMERIC,"C");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp