Re: Database object names and libpq in UTF-8 locale on Windows

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: Sebastien FLAESCH <sf@4js.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2012-11-21T15:49:14Z
Lists: pgsql-hackers

Attachments

> Given we're calling to_lower() on a single byte in the code referred 
> to, should we even be doing that when we have a multi-byte encoding 
> and the high bit is set?
>
>


Nobody responded to this, but I'm rather inclined to say we should not.

Here's a simple patch to avoid this case.

Comments?

cheers

andrew