BUG #3323: Wrong charset for the lower and upper functions - Mailing list pgsql-bugs

From Eduardo Santos
Subject BUG #3323: Wrong charset for the lower and upper functions
Date
Msg-id 200705301940.l4UJeswh031870@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #3323: Wrong charset for the lower and upper functions  (Euler Taveira de Oliveira <euler@timbira.com>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      3323
Logged by:          Eduardo Santos
Email address:      eduardo.edusantos@gmail.com
PostgreSQL version: 8.2.4
Operating system:   Windows
Description:        Wrong charset for the lower and upper functions
Details:

When you have the latin character ç and use the lower or the upper
function, instead of return the approprite character, it returns the oposite
one, so the comparisons in the whole DB are wrong. If you have a word such
as Serviço, and you use the lower function, the result is serviÇo, instead
of serviço. the other side is also true: if you use upper in the same eord,
the result is SERVIçO, instead of SERVIÇO.

select upper('Serviço');
Expected result: SERVIÇO
Actual result: SERVIçO

select lower('Serviço');
Expected result: serviço
Actual result: serviÇo

pgsql-bugs by date:

Previous
From: Pedro Gimeno Fortea
Date:
Subject: Re: BUG #3319: Superuser can't revoke grants on a schema given by aother user
Next
From: Tom Lane
Date:
Subject: Re: backend crash with FATAL: BeginInternalSubTransaction: unexpected state END