Skip to content

Commit 834f450

Browse files
committed
Tweak initdb's text search configuration selection code so it can
cope with LANG settings like 'es_ES@euro'.
1 parent c0a8276 commit 834f450

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/initdb/initdb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
* Portions taken from FreeBSD.
4444
*
45-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.141 2007/09/25 16:29:34 petere Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.142 2007/09/28 15:25:44 tgl Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -971,15 +971,15 @@ find_matching_ts_config(const char *lc_type)
971971
*ptr;
972972

973973
/*
974-
* Convert lc_ctype to a language name by stripping ".utf8" or
974+
* Convert lc_ctype to a language name by stripping ".utf8", "@euro", or
975975
* what-have-you
976976
*/
977977
if (lc_type == NULL)
978978
langname = xstrdup("");
979979
else
980980
{
981981
ptr = langname = xstrdup(lc_type);
982-
while (*ptr && *ptr != '.')
982+
while (*ptr && *ptr != '.' && *ptr != '@')
983983
ptr++;
984984
*ptr = '\0';
985985
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy