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
d7013b0f
Commit
d7013b0f
authored
May 27, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
On WIN32, don't choke when setlocale(LC_MESSAGES, "") returns NULL.
Per report from Magnus.
parent
16974ee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/pg_locale.c
+13
-2
No files found.
src/backend/utils/adt/pg_locale.c
View file @
d7013b0f
...
...
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 2002-2003, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/utils/adt/pg_locale.c,v 1.2
5 2004/01/19 19:04:40
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/pg_locale.c,v 1.2
6 2004/05/27 19:19:05
tgl Exp $
*
*-----------------------------------------------------------------------
*/
...
...
@@ -131,11 +131,22 @@ locale_messages_assign(const char *value, bool doit, GucSource source)
if
(
doit
)
{
if
(
!
setlocale
(
LC_MESSAGES
,
value
))
{
#ifdef WIN32
/*
* Win32 returns NULL when you set LC_MESSAGES to "". So don't
* complain unless we're trying to set it to something else.
*/
if
(
value
[
0
])
return
NULL
;
#else
return
NULL
;
#endif
}
}
else
value
=
locale_xxx_assign
(
LC_MESSAGES
,
value
,
false
,
source
);
#endif
#endif
/* LC_MESSAGES */
return
value
;
}
...
...
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