Re: BUG #1557: UPPER() and LOWER() do not return the right characters

From: "John Hansen" <john(at)geeknet(dot)com(dot)au>
To: "Staffan Sandberg" <staffan(dot)sandberg(at)fhd(dot)se>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #1557: UPPER() and LOWER() do not return the right characters
Date: 2005-03-27 10:06:40
Message-ID: 5066E5A966339E42AA04BA10BA706AE56280@rodrick.geeknet.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Try the replacement upper/lower functions that I wrote:

http://archives.postgresql.org/pgsql-hackers/2005-02/msg00102.php

Kind regards,

John Hansen

> -----Original Message-----
> From: pgsql-bugs-owner(at)postgresql(dot)org
> [mailto:pgsql-bugs-owner(at)postgresql(dot)org] On Behalf Of Staffan Sandberg
> Sent: Tuesday, March 22, 2005 8:28 PM
> To: pgsql-bugs(at)postgresql(dot)org
> Subject: [BUGS] BUG #1557: UPPER() and LOWER() do not return
> the right characters
>
>
> The following bug has been logged online:
>
> Bug reference: 1557
> Logged by: Staffan Sandberg
> Email address: staffan(dot)sandberg(at)fhd(dot)se
> PostgreSQL version: 7.4.6-1.FC2.2
> Operating system: Fedora Core 2
> Description: UPPER() and LOWER() do not return the
> right characters
> Details:
>
> Hi,
>
> I am using a PostgreSQL DB with the LATIN1 (ISO-8859-1)
> character encoding.
> When using the UPPER() or LOWER() functions on any of our
> swedish specific characters the returned character is never
> transformed to the desired case.
> The functions only return the same character as the input,
> disregarding of the input character's case.
>
> E.g: LOWER('Ã-') should return 'ö' but instead 'Ã-' is returned.
>
> The concerned characters are:
> LOWER UPPER
> Ã¥ Ã...
> ä Ã"
> ö Ã-
>
> To solve the problem I am now forced to use the REPLACE()
> function for these three characters, hence it would be more
> convinient if the LOWER() and
> UPPER() functions worked properly.
>
> Please make a comment on my report!
> Kind regards,
> Staffan Sandberg
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>

Browse pgsql-bugs by date

  From Date Subject
Next Message John Hansen 2005-03-27 10:12:44 Re: BUG #1557: UPPER() and LOWER() do not return the right characters
Previous Message Tom Lane 2005-03-27 08:12:37 Re: BUG #1558: memory leak in libpq connectDBStart()