* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.141 2007/09/25 16:29:34 petere Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.142 2007/09/28 15:25:44 tgl Exp $
*
*-------------------------------------------------------------------------
*/
*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)
else
{
ptr = langname = xstrdup(lc_type);
- while (*ptr && *ptr != '.')
+ while (*ptr && *ptr != '.' && *ptr != '@')
ptr++;
*ptr = '\0';
}