[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: [HACKERS] Bug in UTF8-Validation Code?
From:       Tom Lane <tgl () sss ! pgh ! pa ! us>
Date:       2007-04-04 17:01:18
Message-ID: 23020.1175706078 () sss ! pgh ! pa ! us
[Download RAW message or body]

Mark Dilger <pgsql@markdilger.com> writes:
> Albe Laurenz wrote:
>> 0x00 is a valid UNICODE code point and also a valid UTF-8 character!

> It's not my code that rejects this.  I'm passing the resultant string to 
> the pg_verify_mbstr(...) function and it is rejecting a null.  I could 
> change that, of course, but if other parts of the system found it 
> reasonable to reject null, why should chr() be different?

chr() really should reject that if it's going to do any error checking
at all, because text operations tend to misbehave on embedded nulls.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic