Re: Bug in UTF8-Validation Code?

From: Andrew - Supernews <andrew+nonews(at)supernews(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug in UTF8-Validation Code?
Date: 2007-04-01 15:44:17
Message-ID: slrnf0vkqh.2i67.andrew+nonews@atlantis.supernews.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2007-04-01, Mark Dilger <pgsql(at)markdilger(dot)com> wrote:
> Do any of the string functions (see
> http://www.postgresql.org/docs/8.2/interactive/functions-string.html) run the
> risk of generating invalid utf8 encoded strings? Do I need to add checks?
> Are there known bugs with these functions in this regard?

The chr() function returns an octet, rather than a character; this is clearly
wrong and needs fixing.

--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-04-01 18:31:41 Re: Macros for typtype (was Re: Arrays of Complex Types)
Previous Message Guillaume Smet 2007-04-01 15:13:39 Re: Column storage positions