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
fd924b29
Commit
fd924b29
authored
Jan 02, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't assume that LC_MESSAGES is always available on WIN32. Per Magnus.
parent
499f4d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/pg_locale.c
+6
-4
No files found.
src/backend/utils/adt/pg_locale.c
View file @
fd924b29
...
...
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 2002-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/utils/adt/pg_locale.c,v 1.3
3 2005/12/28 23:22:51
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/pg_locale.c,v 1.3
4 2006/01/02 20:25:45
tgl Exp $
*
*-----------------------------------------------------------------------
*/
...
...
@@ -106,15 +106,17 @@ pg_perm_setlocale(int category, const char *locale)
* We must ignore attempts to set to "", which means "keep using the
* old environment value".
*/
if
(
category
!=
LC_MESSAGES
)
result
=
setlocale
(
category
,
locale
);
else
#ifdef LC_MESSAGES
if
(
category
==
LC_MESSAGES
)
{
result
=
(
char
*
)
locale
;
if
(
locale
==
NULL
||
locale
[
0
]
==
'\0'
)
return
result
;
}
else
#endif
result
=
setlocale
(
category
,
locale
);
#endif
/* WIN32 */
if
(
result
==
NULL
)
return
result
;
/* fall out immediately on failure */
...
...
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