mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Fix parser bug on Windows with UTF8 encoding and C locale, the reason was
sizeof(wchar_t) = 2 instead of 4.
This commit is contained in:
parent
60e67c1632
commit
fc565cfc7b
@ -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"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ p_isalnum(TParser *prs)
|
|||||||
{
|
{
|
||||||
if (lc_ctype_is_c())
|
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
|
* any non-ascii symbol with multibyte encoding
|
||||||
|
Loading…
Reference in New Issue
Block a user