summarylogtreecommitdiffstats
path: root/0001-Force-utf8-codeset.patch
blob: 59b6a16a843f17f6922e9680bf1664b0aa96e4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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