]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix parser bug on Windows with UTF8 encoding and C locale, the reason was
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 22 Mar 2007 15:59:09 +0000 (15:59 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 22 Mar 2007 15:59:09 +0000 (15:59 +0000)
sizeof(wchar_t) = 2 instead of 4.

contrib/tsearch2/wordparser/parser.c

index 91d6257d374b7200b593724f991e9100acf79a93..af58f59a9946b1d7693b3a7fbb8c9bfec18fe16b 100644 (file)
@@ -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