Re: BUG #5903: Turkish encoding problem

From: "DMS Tech, Sarp" <sarp(at)dms-tech(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5903: Turkish encoding problem
Date: 2011-06-01 09:52:21
Message-ID: 964A4AFEE2E4834BA0DDB5F75468FEBC07648683@DMS-DOMAIN-SV1.dmstech.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

When we run an application on the same machine & OS, application's lower and upper functions results are correct but PostgreSQL does not behave similar.

-----Original Message-----
From: Robert Haas [mailto:robertmhaas(at)gmail(dot)com]
Sent: Thursday, March 03, 2011 8:32 PM
To: DMS Tech, Sarp
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] BUG #5903: Turkish encoding problem

On Tue, Mar 1, 2011 at 1:59 AM, Sarp Akal <sarp(at)dms-tech(dot)com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5903
> Logged by:          Sarp Akal
> Email address:      sarp(at)dms-tech(dot)com
> PostgreSQL version: 9.0.2
> Operating system:   Windows Server 2008 R2 x64
> Description:        Turkish encoding problem
> Details:
>
> The server is setup for UTF8 encoding and collation and character type are
> Turkish_Turkey.1254
>
> The following code fails:
>
> select lower('İ')  --> Lowercase of turkish capital I-with dot returns
> exactly the same character.
>
> select upper('ı')  --> Uppercase of turkish small i-without dot returns
> exactly the same character.
>
> select lower('I')  --> Lowercase of turkish capital I returns i where it
> should be i-without dot.
>
> select upper('i')  --> Uppercase of turkish small returns I where it should
> be I-with dot.

I might be wrong about this, but I think this behavior is determined
by the operating system behavior of the locale you've selected, and we
just believe whatever the OS says.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2011-06-01 15:40:21 Re: [BUGS] BUG #6034: pg_upgrade fails when it should not.
Previous Message Craig Ringer 2011-06-01 03:50:38 Re: BUG #6046: select current_date crashes postgres