Re: [HACKERS] Bug with UTF-8 character

2006-05-26 Thread Martijn van Oosterhout
On Fri, May 26, 2006 at 05:16:59PM +0300, Marko Kreen wrote: > On 5/26/06, Martijn van Oosterhout wrote: > >On Fri, May 26, 2006 at 08:21:56AM +0200, Hans-Jürgen Schönig wrote: > >> I got a bug request for the following unicode character in PostgreSQL > >> 8.1.4: 0xedaeb8 > >> > >> ERROR: invalid

Re: [HACKERS] Bug with UTF-8 character

2006-05-26 Thread Tom Lane
=?windows-1252?Q?Hans-J=FCrgen_Sch=F6nig?= <[EMAIL PROTECTED]> writes: > But the code does a check where the second character should not be > greater than 0x9F, when first character is 0xED. This is not according > to UTF-8 standard in RFC 3629. Better read the RFC again: it says UTF8-3

Re: [HACKERS] Bug with UTF-8 character

2006-05-26 Thread Marko Kreen
On 5/26/06, Martijn van Oosterhout wrote: On Fri, May 26, 2006 at 08:21:56AM +0200, Hans-Jürgen Schönig wrote: > I got a bug request for the following unicode character in PostgreSQL > 8.1.4: 0xedaeb8 > > ERROR: invalid byte sequence for encoding "UTF8": 0xedaeb8 Your character converts to c

Re: [HACKERS] Bug with UTF-8 character

2006-05-26 Thread Martijn van Oosterhout
On Fri, May 26, 2006 at 08:21:56AM +0200, Hans-Jürgen Schönig wrote: > good morning, > > I got a bug request for the following unicode character in PostgreSQL > 8.1.4: 0xedaeb8 > > ERROR: invalid byte sequence for encoding "UTF8": 0xedaeb8 > > This one seemed to work properly in PostgreSQL 8.0

[HACKERS] Bug with UTF-8 character

2006-05-25 Thread Hans-Jürgen Schönig
good morning, I got a bug request for the following unicode character in PostgreSQL 8.1.4: 0xedaeb8 ERROR: invalid byte sequence for encoding "UTF8": 0xedaeb8 This one seemed to work properly in PostgreSQL 8.0.3. I think the following code in postgreSQL 814 has a bug in it. File: postgresq