Content-Length: 265119 | pFad | http://github.com/postgrespro/postgres/commit/797f98036400bc70d4b331c5b1760a05aab59cfa

F1 pg_regress: for --no-locale, use LOCALE='C'. · postgrespro/postgres@797f980 · GitHub
Skip to content

Commit 797f980

Browse files
committed
pg_regress: for --no-locale, use LOCALE='C'.
Instead of specifying LC_COLLATE='C' and LC_CTYPE='C', specify LOCALE='C' which will also affect ICU. This makes pg_regress consistent with recent changes to initdb in commit a14e75e. Fixes buildfarm failure. Discussion: https://postgr.es/m/2458565.1686953169@sss.pgh.pa.us
1 parent 7fcd7ef commit 797f980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/regress/pg_regress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,10 +1972,10 @@ create_database(const char *dbname)
19721972
*/
19731973
if (encoding)
19741974
psql_add_command(buf, "CREATE DATABASE \"%s\" TEMPLATE=template0 ENCODING='%s'%s", dbname, encoding,
1975-
(nolocale) ? " LC_COLLATE='C' LC_CTYPE='C'" : "");
1975+
(nolocale) ? " LOCALE='C'" : "");
19761976
else
19771977
psql_add_command(buf, "CREATE DATABASE \"%s\" TEMPLATE=template0%s", dbname,
1978-
(nolocale) ? " LC_COLLATE='C' LC_CTYPE='C'" : "");
1978+
(nolocale) ? " LOCALE='C'" : "");
19791979
psql_add_command(buf,
19801980
"ALTER DATABASE \"%s\" SET lc_messages TO 'C';"
19811981
"ALTER DATABASE \"%s\" SET lc_monetary TO 'C';"

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/797f98036400bc70d4b331c5b1760a05aab59cfa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy