about summary refs log tree commit diff
path: root/pkgs/servers/sql/postgresql/patches/locale-binary-path.patch
blob: 8068683ab64bfce1a23a5d33e7f2dcd37980e527 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/backend/commands/collationcmds.c
+++ b/src/backend/commands/collationcmds.c
@@ -611,7 +611,7 @@ pg_import_system_collations(PG_FUNCTION_ARGS)
 		aliases = (CollAliasData *) palloc(maxaliases * sizeof(CollAliasData));
 		naliases = 0;
 
-		locale_a_handle = OpenPipeStream("locale -a", "r");
+		locale_a_handle = OpenPipeStream("@locale@ -a", "r");
 		if (locale_a_handle == NULL)
 			ereport(ERROR,
 					(errcode_for_file_access(),