mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-25 05:00:21 +00:00
26 lines
858 B
Diff
26 lines
858 B
Diff
diff -uNr postgresql-15.0/src/bin/initdb/initdb.c postgresql-15.0.mod/src/bin/initdb/initdb.c
|
|
--- postgresql-15.0/src/bin/initdb/initdb.c 2022-10-10 23:57:37.000000000 +0300
|
|
+++ postgresql-15.0.mod/src/bin/initdb/initdb.c 2022-10-21 17:08:03.387801295 +0300
|
|
@@ -124,8 +124,8 @@
|
|
|
|
/* values to be obtained from arguments */
|
|
static char *pg_data = NULL;
|
|
-static char *encoding = NULL;
|
|
-static char *locale = NULL;
|
|
+static char *encoding = "UTF-8";
|
|
+static char *locale = "en_US.UTF-8";
|
|
static char *lc_collate = NULL;
|
|
static char *lc_ctype = NULL;
|
|
static char *lc_monetary = NULL;
|
|
@@ -849,7 +849,9 @@
|
|
static const char *
|
|
choose_dsm_implementation(void)
|
|
{
|
|
-#if defined(HAVE_SHM_OPEN) && !defined(__sun__)
|
|
+#if defined(__ANDROID__)
|
|
+ return "mmap";
|
|
+#elif defined(HAVE_SHM_OPEN) && !defined(__sun__)
|
|
int ntries = 10;
|
|
pg_prng_state prng_state;
|
|
|