pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #5903: Turkish encoding problem
5+ messages / 4 participants
[nested] [flat]

* BUG #5903: Turkish encoding problem
@ 2011-03-01 06:59 Sarp Akal <sarp@dms-tech.com>
  2011-03-03 18:31 ` Re: BUG #5903: Turkish encoding problem Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Sarp Akal @ 2011-03-01 06:59 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      5903
Logged by:          Sarp Akal
Email address:      sarp@dms-tech.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.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #5903: Turkish encoding problem
  2011-03-01 06:59 BUG #5903: Turkish encoding problem Sarp Akal <sarp@dms-tech.com>
@ 2011-03-03 18:31 ` Robert Haas <robertmhaas@gmail.com>
  2011-06-01 09:52   ` Re: BUG #5903: Turkish encoding problem DMS Tech, Sarp <sarp@dms-tech.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Robert Haas @ 2011-03-03 18:31 UTC (permalink / raw)
  To: Sarp Akal <sarp@dms-tech.com>; +Cc: pgsql-bugs

On Tue, Mar 1, 2011 at 1:59 AM, Sarp Akal <sarp@dms-tech.com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5903
> Logged by:          Sarp Akal
> Email address:      sarp@dms-tech.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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #5903: Turkish encoding problem
  2011-03-01 06:59 BUG #5903: Turkish encoding problem Sarp Akal <sarp@dms-tech.com>
  2011-03-03 18:31 ` Re: BUG #5903: Turkish encoding problem Robert Haas <robertmhaas@gmail.com>
@ 2011-06-01 09:52   ` DMS Tech, Sarp <sarp@dms-tech.com>
  2011-06-01 16:02     ` Re: BUG #5903: Turkish encoding problem Devrim GÜNDÜZ <devrim@gunduz.org>
  0 siblings, 1 reply; 5+ messages in thread

From: DMS Tech, Sarp @ 2011-06-01 09:52 UTC (permalink / raw)
  To: Robert Haas <robertmhaas@gmail.com>; +Cc: 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@gmail.com] 
Sent: Thursday, March 03, 2011 8:32 PM
To: DMS Tech, Sarp
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #5903: Turkish encoding problem

On Tue, Mar 1, 2011 at 1:59 AM, Sarp Akal <sarp@dms-tech.com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5903
> Logged by:          Sarp Akal
> Email address:      sarp@dms-tech.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




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #5903: Turkish encoding problem
  2011-03-01 06:59 BUG #5903: Turkish encoding problem Sarp Akal <sarp@dms-tech.com>
  2011-03-03 18:31 ` Re: BUG #5903: Turkish encoding problem Robert Haas <robertmhaas@gmail.com>
  2011-06-01 09:52   ` Re: BUG #5903: Turkish encoding problem DMS Tech, Sarp <sarp@dms-tech.com>
@ 2011-06-01 16:02     ` Devrim GÜNDÜZ <devrim@gunduz.org>
  2011-06-01 17:18       ` Re: BUG #5903: Turkish encoding problem Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Devrim GÜNDÜZ @ 2011-06-01 16:02 UTC (permalink / raw)
  To: DMS Tech, Sarp <sarp@dms-tech.com>; +Cc: Robert Haas <robertmhaas@gmail.com>; pgsql-bugs

On Wed, 2011-06-01 at 09:52 +0000, DMS Tech, Sarp wrote:
> 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.

Upgrade to *nix. I have heard several similar complaints on Windows. All
recent (7 years and up) glibc releases have proper tr_TR.UTF-8 support.
-- 
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz

Attachments:

  signature.asc (application/pgp-signature, 197B) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #5903: Turkish encoding problem
  2011-03-01 06:59 BUG #5903: Turkish encoding problem Sarp Akal <sarp@dms-tech.com>
  2011-03-03 18:31 ` Re: BUG #5903: Turkish encoding problem Robert Haas <robertmhaas@gmail.com>
  2011-06-01 09:52   ` Re: BUG #5903: Turkish encoding problem DMS Tech, Sarp <sarp@dms-tech.com>
  2011-06-01 16:02     ` Re: BUG #5903: Turkish encoding problem Devrim GÜNDÜZ <devrim@gunduz.org>
@ 2011-06-01 17:18       ` Robert Haas <robertmhaas@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Robert Haas @ 2011-06-01 17:18 UTC (permalink / raw)
  To: Devrim GÜNDÜZ <devrim@gunduz.org>; +Cc: DMS Tech, Sarp <sarp@dms-tech.com>; pgsql-bugs

2011/6/1 Devrim GÜNDÜZ <devrim@gunduz.org>:
> On Wed, 2011-06-01 at 09:52 +0000, DMS Tech, Sarp wrote:
>> 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.
>
> Upgrade to *nix. I have heard several similar complaints on Windows. All
> recent (7 years and up) glibc releases have proper tr_TR.UTF-8 support.

That's not really much of an answer, since the OP claimed that this
wasn't happening in other applications that use that locale on the
same machine.  It's possible that we're calling the wrong locale-aware
functions on Windows, or just different ones, but I wouldn't even know
where to start looking for that sort of problem.

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2011-06-01 17:18 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01 06:59 BUG #5903: Turkish encoding problem Sarp Akal <sarp@dms-tech.com>
2011-03-03 18:31 ` Robert Haas <robertmhaas@gmail.com>
2011-06-01 09:52   ` DMS Tech, Sarp <sarp@dms-tech.com>
2011-06-01 16:02     ` Devrim GÜNDÜZ <devrim@gunduz.org>
2011-06-01 17:18       ` Robert Haas <robertmhaas@gmail.com>

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