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
ff5565f0
Commit
ff5565f0
authored
Apr 15, 2011
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress unused-function warning on non-WIN32 builds.
parent
72826fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+5
-2
No files found.
src/bin/initdb/initdb.c
View file @
ff5565f0
...
...
@@ -185,7 +185,6 @@ static int locale_date_order(const char *locale);
static
bool
check_locale_name
(
const
char
*
locale
);
static
bool
check_locale_encoding
(
const
char
*
locale
,
int
encoding
);
static
void
setlocales
(
void
);
static
void
strreplace
(
char
*
str
,
char
*
needle
,
char
*
replacement
);
static
char
*
localemap
(
char
*
locale
);
static
void
usage
(
const
char
*
progname
);
...
...
@@ -2252,6 +2251,8 @@ check_locale_encoding(const char *locale, int user_enc)
return
true
;
}
#ifdef WIN32
/*
* Replace 'needle' with 'replacement' in 'str' . Note that the replacement
* is done in-place, so 'replacement' must be shorter than 'needle'.
...
...
@@ -2272,6 +2273,8 @@ strreplace(char *str, char *needle, char *replacement)
}
}
#endif
/* WIN32 */
/*
* Windows has a problem with locale names that have a dot or apostrophe in
* the country name. For example:
...
...
@@ -2321,7 +2324,7 @@ localemap(char *locale)
strreplace
(
locale
,
"Chinese_Macau S.A.R..950"
,
"ZHM"
);
strreplace
(
locale
,
"Chinese (Traditional)_Macao S.A.R..950"
,
"ZHM"
);
strreplace
(
locale
,
"Chinese_Macao S.A.R..950"
,
"ZHM"
);
#endif
#endif
/* WIN32 */
return
locale
;
}
...
...
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