Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d0bfe7f1
Commit
d0bfe7f1
authored
Sep 09, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments about how locale settings are handled.
parent
62b53acc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
src/backend/main/main.c
src/backend/main/main.c
+8
-9
No files found.
src/backend/main/main.c
View file @
d0bfe7f1
...
...
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.6
1 2003/08/04 02:39:59 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.6
2 2003/09/09 15:19:31 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -123,13 +123,12 @@ main(int argc, char *argv[])
new_argv
[
argc
]
=
NULL
;
/*
* Set up locale information from environment. Note that CTYPE and
* COLLATE will be overridden later from pg_control if we are in an
* Set up locale information from environment. Note that
LC_
CTYPE and
*
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
* be available to fill pg_control during initdb. The other ones will
* get reset later in InitializeGUCOptions, but we set them here to
* get already localized behavior during startup (e.g., error
* messages).
* be available to fill pg_control during initdb. LC_MESSAGES will get
* set later during GUC option processing, but we set it here to allow
* startup error messages to be localized.
*/
setlocale
(
LC_COLLATE
,
""
);
setlocale
(
LC_CTYPE
,
""
);
...
...
@@ -138,8 +137,8 @@ main(int argc, char *argv[])
#endif
/*
* We
don't use these during startup. See also pg_locale.c about why
*
these are set to "C"
.
* We
keep these set to "C" always, except transiently in pg_locale.c;
*
see that file for explanations
.
*/
setlocale
(
LC_MONETARY
,
"C"
);
setlocale
(
LC_NUMERIC
,
"C"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment