Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit41839b7

Browse files
committed
Fix ICU collation use on Windows
Windows uses a separate code path for libc locales. The code previouslyended up there also if an ICU collation should be used, leading to acrash.Reported-by: Ashutosh Sharma <ashu.coek88@gmail.com>
1 parent3ef97e7 commit41839b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/utils/adt/varlena.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,8 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
14331433

14341434
#ifdefWIN32
14351435
/* Win32 does not have UTF-8, so we need to map to UTF-16 */
1436-
if (GetDatabaseEncoding()==PG_UTF8)
1436+
if (GetDatabaseEncoding()==PG_UTF8
1437+
&& (!mylocale||mylocale->provider==COLLPROVIDER_LIBC))
14371438
{
14381439
inta1len;
14391440
inta2len;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp