From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ragnar Österlund <ragoster@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: case insensitive regex clause with some latin1 characters fails
Date: Mon, 11 Sep 2006 15:41:16 -0400
Message-ID: <5785.1158003676@sss.pgh.pa.us> (raw)
In-Reply-To: <6b4c32560609111209v7edc95dcq9a559d0f5e69027b@mail.gmail.com>
References: <6b4c32560609111209v7edc95dcq9a559d0f5e69027b@mail.gmail.com>
"=?ISO-8859-1?Q?Ragnar_=D6sterlund?=" <ragoster@gmail.com> writes:
> I'm not sure if this is a bug or if I'm doing something wrong. I have
> a database encoded with ISO-8859-1, aka LATIN1. When I do something
> like:
> SELECT 'Ä' ~* 'ä';
> it returns false.
Check the database's locale setting (LC_CTYPE). It has to be one that
expects LATIN1 encoding.
The current regex code is generally not able to deal with locale-specific
behaviors in UTF8 encoding, but it should work for single-byte encodings
as long as you've got the locale setting right.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, ragoster@gmail.com
Subject: Re: case insensitive regex clause with some latin1 characters fails
In-Reply-To: <5785.1158003676@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