pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@oss.ntt.co.jp>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [v9.2] make_greater_string() does not return a string in some cases
Date: Tue, 18 Oct 2011 00:11:38 -0400
Message-ID: <26142.1318911098@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobVjxK6DAuGHJ=nLgnfYHP4s7EAp19E86pzd4DudGhY4w@mail.gmail.com>
References: <20111007.132246.187325868.horiguchi.kyotaro@oss.ntt.co.jp>
	<CA+Tgmoao2OoZBMUsfp3ZC0_LgXsv3jBvY9eYR5h+cZYez7j26Q@mail.gmail.com>
	<20111011.165500.124520773.horiguchi.kyotaro@oss.ntt.co.jp>
	<20111013.124530.97708970.horiguchi.kyotaro@oss.ntt.co.jp>
	<CA+TgmoYETjFMP2hFzWwCxEi2OQKA+NP5CY-DMPnasxNCgX+2rg@mail.gmail.com>
	<25893.1318910085@sss.pgh.pa.us>
	<CA+TgmobVjxK6DAuGHJ=nLgnfYHP4s7EAp19E86pzd4DudGhY4w@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Oct 17, 2011 at 11:54 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> http://www.faqs.org/rfcs/rfc3629.html

> I'm still confused.  The input string is already known to be valid
> UTF-8, so the second byte (if there is one) must be between 0x80 and
> 0xBF.  Therefore it will be neither 0xED nor 0xF4.

I haven't read the patch lately, but ED and F4 are special as *first*
bytes.  Maybe the logic isn't quite right, or you read it wrong?

			regards, tom lane



view thread (57+ messages)  latest in thread

Message-ID: <26142.1318911098@sss.pgh.pa.us>
Permalink:  ../26142.1318911098@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26142.1318911098@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, horiguchi.kyotaro@oss.ntt.co.jp, pgsql-hackers@postgresql.org
  Subject: Re: [v9.2] make_greater_string() does not return a string in some cases
  In-Reply-To: <26142.1318911098@sss.pgh.pa.us>
  References: <20111007.132246.187325868.horiguchi.kyotaro@oss.ntt.co.jp> <CA+Tgmoao2OoZBMUsfp3ZC0_LgXsv3jBvY9eYR5h+cZYez7j26Q@mail.gmail.com> <20111011.165500.124520773.horiguchi.kyotaro@oss.ntt.co.jp> <20111013.124530.97708970.horiguchi.kyotaro@oss.ntt.co.jp> <CA+TgmoYETjFMP2hFzWwCxEi2OQKA+NP5CY-DMPnasxNCgX+2rg@mail.gmail.com> <25893.1318910085@sss.pgh.pa.us> <CA+TgmobVjxK6DAuGHJ=nLgnfYHP4s7EAp19E86pzd4DudGhY4w@mail.gmail.com> <26142.1318911098@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox