Re: BUG #15347: Unaccent for greek characters does not work - Mailing list pgsql-bugs

From Thomas Munro
Subject Re: BUG #15347: Unaccent for greek characters does not work
Date
Msg-id CAEepm=0ar4rWZBb85GCJxtHtrM2nYzpFJQTBhuE6BtPtW88i6g@mail.gmail.com
Whole thread Raw
In response to Re: BUG #15347: Unaccent for greek characters does not work  (Michael Paquier <michael@paquier.xyz>)
Responses Re: BUG #15347: Unaccent for greek characters does not work
List pgsql-bugs
On Fri, Aug 24, 2018 at 11:35 PM Michael Paquier <michael@paquier.xyz> wrote:
> On Fri, Aug 24, 2018 at 03:32:28PM +1200, Thomas Munro wrote:
> Thanks for considering it.  I have not gone in details through the patch
> but...
>
> +           (codepoint.id >= ord('A') and codepoint.id <= ord('Z')) or \
> +           (codepoint.id >= 0x03b1 and codepoint.id <= 0x03c9) or \
> +           (codepoint.id >= 0x0391 and codepoint.id <= 0x03a9)
>
> ...  If you could add notes about what those codepoints are, or just
> allocate them in a variable with a proper name, that would help with the
> readability.  My apologies for the nits on this thread.

Fair criticism, here's a version with comments.

-- 
Thomas Munro
http://www.enterprisedb.com

Attachment

pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors
Next
From: Tom Lane
Date:
Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors