summaryrefslogtreecommitdiffstats
path: root/external/postgresql/windows.patch.0
blob: 28fc9046c298fcc0977cb5beb436e1e4942b9da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/port/chklocale.c
+++ src/port/chklocale.c
@@ -220,7 +220,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