Skip site navigation (1) Skip section navigation (2)

pgsql-server/contrib/tsearch morph.c

From: momjian(at)postgresql(dot)org (Bruce Momjian - CVS)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/contrib/tsearch morph.c
Date: 2002-12-06 05:15:03
Message-ID: 20021206051503.7BDE0476978@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
CVSROOT:	/cvsroot
Module name:	pgsql-server
Changes by:	momjian(at)postgresql(dot)org	02/12/06 00:15:03

Modified files:
	contrib/tsearch: morph.c 

Log message:
	Thank you very much, you catch it :). This bug had a long life, because it
	exists if and only if locale of postmaster
	was a different from C (or ru_RU.KOI8-R).
	
	Please, apply patch for current CVS & 7.3.1
	
	Magnus Naeslund(f) wrote:
	> Ok, I nailed the bug, but i'm not sure what the correct fix is.
	> Attached tsearch_morph.diff that remedies this problem by avoiding it.
	> Also there's a debug aid patch if someone would like to know how i
	> finally found it out :)
	>
	> There problem in the lemmatize() function is that GETDICT(...) returned
	> a value not handled (BYLOCALE).
	> The value (-1) and later used as an index into the dicts[] array.
	> After that everything went berserk stack went crazy somehow so trapping
	> the fault sent me to the wrong place, and every time i read the value it
	> was positive ;)
	>
	> So now i just return the initial word passed to the lemmatize function,
	> because i don't know what to do with it.
	
	Magnus Naeslund


pgsql-committers by date

Next:From: Bruce Momjian - CVSDate: 2002-12-06 05:15:34
Subject: pgsql-server/contrib/tsearch Tag: REL7_3_STABL ...
Previous:From: Bruce Momjian - CVSDate: 2002-12-06 05:07:16
Subject: pgsql-server/doc/src/sgml features.sgml ref/al ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group