summarylogtreecommitdiffstats
path: root/0001-Force-utf8-codeset.patch
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2025-03-19 13:22:39 -0300
committerGonzalo Exequiel Pedone2025-03-19 13:22:39 -0300
commit0e4ed99bea421b3c4f195d130dcc258f1eab55cc (patch)
tree5bce9ffe513e53146c3b146f50c184281313836c /0001-Force-utf8-codeset.patch
downloadaur-0e4ed99bea421b3c4f195d130dcc258f1eab55cc.tar.gz
Package updated to 16.8.
Diffstat (limited to '0001-Force-utf8-codeset.patch')
-rw-r--r--0001-Force-utf8-codeset.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/0001-Force-utf8-codeset.patch b/0001-Force-utf8-codeset.patch
new file mode 100644
index 000000000000..59b6a16a843f
--- /dev/null
+++ b/0001-Force-utf8-codeset.patch
@@ -0,0 +1,24 @@
+--- a/src/port/chklocale.c
++++ b/src/port/chklocale.c
+@@ -335,9 +335,7 @@
+ }
+
+ #ifndef WIN32
+- sys = nl_langinfo(CODESET);
+- if (sys)
+- sys = strdup(sys);
++ sys = strdup("UTF-8");
+ #else
+ sys = win32_langinfo(name);
+ #endif
+@@ -358,9 +356,7 @@
+ return PG_SQL_ASCII;
+
+ #ifndef WIN32
+- sys = nl_langinfo(CODESET);
+- if (sys)
+- sys = strdup(sys);
++ sys = strdup("UTF-8");
+ #else
+ sys = win32_langinfo(ctype);
+ #endif