summaryrefslogtreecommitdiff
path: root/external/postgresql/windows.patch.0
blob: dbac548d465961911724f991876bf5189ee8994b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/port/chklocale.c
+++ src/port/chklocale.c
@@ -211,7 +211,7 @@
 	{
 		r = malloc(16);			/* excess */
 		if (r != NULL)
-			sprintf(r, "CP%u", loct->locinfo->lc_codepage);
+			sprintf(r, "CP%u", ((struct __crt_locale_data_public *) loct->locinfo)->_locale_lc_codepage);
 		_free_locale(loct);
 	}
 #else