Re: tsearch is non-multibyte-aware in a few places - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tsearch is non-multibyte-aware in a few places
Date
Msg-id 18302.1213896216@sss.pgh.pa.us
Whole thread Raw
In response to tsearch is non-multibyte-aware in a few places  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> This is safe if and only if t_isspace is never true for multibyte
> characters ... can anyone think of a counterexample?

Non-breaking space is a counterexample, so I pg_mblen-ified those
loops too.  Fortunately this code only executes during dictionary
cache load, so a few extra cycles aren't too critical.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: tsearch is non-multibyte-aware in a few places
Next
From: Tom Raney
Date:
Subject: Re: Plan targetlists in EXPLAIN output