projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
179317f
)
Tweak initdb's text search configuration selection code so it can
author
Tom Lane
<tgl@sss.pgh.pa.us>
Fri, 28 Sep 2007 15:25:44 +0000
(15:25 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Fri, 28 Sep 2007 15:25:44 +0000
(15:25 +0000)
cope with LANG settings like 'es_ES@euro'.
src/bin/initdb/initdb.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/initdb/initdb.c
b/src/bin/initdb/initdb.c
index 6035cae2ff031a1196798366ab1b174a0538b6a6..3fb9bb60f33d4baa0bed27851e7aae3d15bd457d 100644
(file)
--- a/
src/bin/initdb/initdb.c
+++ b/
src/bin/initdb/initdb.c
@@
-971,7
+971,7
@@
find_matching_ts_config(const char *lc_type)
*ptr;
/*
- * Convert lc_ctype to a language name by stripping ".utf8" or
+ * Convert lc_ctype to a language name by stripping ".utf8"
, "@euro",
or
* what-have-you
*/
if (lc_type == NULL)
@@
-979,7
+979,7
@@
find_matching_ts_config(const char *lc_type)
else
{
ptr = langname = xstrdup(lc_type);
- while (*ptr && *ptr != '.')
+ while (*ptr && *ptr != '.'
&& *ptr != '@'
)
ptr++;
*ptr = '\0';
}