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

Commitbb8998a

Browse files
committed
Fix parser bug on Windows with UTF8 encoding and C locale, the reason was
sizeof(wchar_t) = 2 instead of 4.
1 parentc68a631 commitbb8998a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/tsearch2/wordparser/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/tsearch2/wordparser/parser.c,v 1.12 2007/01/15 15:16:28 teodor Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/tsearch2/wordparser/parser.c,v 1.13 2007/03/22 15:58:24 teodor Exp $ */
22

33
#include"postgres.h"
44

@@ -117,7 +117,7 @@ p_isalnum(TParser *prs)
117117
{
118118
if (lc_ctype_is_c())
119119
{
120-
unsignedintc=*(unsignedint*)(prs->wstr+prs->state->poschar);
120+
unsignedintc=*(prs->wstr+prs->state->poschar);
121121

122122
/*
123123
* any non-ascii symbol with multibyte encoding

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp