aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2007-03-22 15:59:09 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2007-03-22 15:59:09 +0000
commitfc565cfc7b0e671a906d405713075a07844d8dc3 (patch)
tree701771e63e16472c452121065c1cb02b5680a63d
parent60e67c163232582f8b9dd80d7a51e6ed97fe2745 (diff)
downloadpostgresql-fc565cfc7b0e671a906d405713075a07844d8dc3.tar.gz
postgresql-fc565cfc7b0e671a906d405713075a07844d8dc3.zip
Fix parser bug on Windows with UTF8 encoding and C locale, the reason was
sizeof(wchar_t) = 2 instead of 4.
-rw-r--r--contrib/tsearch2/wordparser/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/wordparser/parser.c b/contrib/tsearch2/wordparser/parser.c
index 91d6257d374..af58f59a994 100644
--- a/contrib/tsearch2/wordparser/parser.c
+++ b/contrib/tsearch2/wordparser/parser.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/contrib/tsearch2/wordparser/parser.c,v 1.11.2.1 2007/01/15 15:16:11 teodor Exp $ */
+/* $PostgreSQL: pgsql/contrib/tsearch2/wordparser/parser.c,v 1.11.2.2 2007/03/22 15:59:09 teodor Exp $ */
#include "postgres.h"
@@ -117,7 +117,7 @@ p_isalnum(TParser *prs)
{
if (lc_ctype_is_c())
{
- unsigned int c = *(unsigned int*)(prs->wstr + prs->state->poschar);
+ unsigned int c = *(prs->wstr + prs->state->poschar);
/*
* any non-ascii symbol with multibyte encoding