Skip to content

Commit fcaae5f

Browse files
committed
Fix problem with POSIX collation in ICU library under Win32
by making C collation instead of POSIX.
1 parent 298c7c9 commit fcaae5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/backend/utils/adt/pg_locale.c

100644100755
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,11 @@ pg_newlocale_from_collation(Oid collid)
11831183
result = newlocale(LC_COLLATE_MASK | LC_CTYPE_MASK, collcollate,
11841184
NULL);
11851185
#else
1186+
#ifdef USE_ICU
1187+
if (strcmp(collcollate,"POSIX")==0)
1188+
result = _create_locale(LC_ALL,"C");
1189+
else
1190+
#endif
11861191
result = _create_locale(LC_ALL, collcollate);
11871192
#endif
11881193
if (!result)

0 commit comments

Comments
 (0)