Commit bb8998a4 authored by Teodor Sigaev's avatar Teodor Sigaev

Fix parser bug on Windows with UTF8 encoding and C locale, the reason was

sizeof(wchar_t) = 2 instead of 4.
parent c68a631c
/* $PostgreSQL: pgsql/contrib/tsearch2/wordparser/parser.c,v 1.12 2007/01/15 15:16:28 teodor Exp $ */
/* $PostgreSQL: pgsql/contrib/tsearch2/wordparser/parser.c,v 1.13 2007/03/22 15:58:24 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment