projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c68a631
)
Fix parser bug on Windows with UTF8 encoding and C locale, the reason was
author
Teodor Sigaev
<teodor@sigaev.ru>
Thu, 22 Mar 2007 15:58:24 +0000
(15:58 +0000)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Thu, 22 Mar 2007 15:58:24 +0000
(15:58 +0000)
sizeof(wchar_t) = 2 instead of 4.
contrib/tsearch2/wordparser/parser.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/wordparser/parser.c
b/contrib/tsearch2/wordparser/parser.c
index 3706a0efb7259bf183e34946c7e0480b704dbfe5..c7b7459e595d9b65e1f695a0e7b50395c0755799 100644
(file)
--- 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.1
2 2007/01/15 15:16:28
teodor Exp $ */
+/* $PostgreSQL: pgsql/contrib/tsearch2/wordparser/parser.c,v 1.1
3 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