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

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 (view raw or flat)
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

pgsql-hackers by date

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

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