Re: small bug in to_char and TM prefix, in RC - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: small bug in to_char and TM prefix, in RC
Date
Msg-id BAY20-F994688393DD2F60769BB8F9E40@phx.gbl
Whole thread Raw
In response to Re: small bug in to_char and TM prefix, in RC  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
>
>On Wed, Nov 29, 2006 at 09:06:07PM +0100, Pavel Stehule wrote:
> > Hello,
> >
> > after apply my patch this bug is only visible (for czech env). Propably 
>in
> > others languages isn't used diacritic's chars in mont's and days's 
>names.
> > str_toupper is too simply and don't support UTF8, which isn't for 
>english
> > problem.
> >
> > I prepare patch.
>
>What platform is this? Not all platforms are created equal when it
>comes to handling of toupper/tolower on unicode charaters.
>


postgres=# select version();                                              version
-----------------------------------------------------------------------------------------------------
PostgreSQL 8.2rc1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.1.1 
20061011 (Red Hat 4.1.1-30)



to_char use pg_toupper

from pgstrcasecmp.c

*
* Fold a character to upper case.
*
* Unlike some versions of toupper(), this is safe to apply to characters
* that aren't lower case letters.  Note however that the whole thing is
* a bit bogus for multibyte character sets.
*/

Pavel

_________________________________________________________________
Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/



pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: -HEAD configure issue with libedit on linux
Next
From: Tom Lane
Date:
Subject: Re: small bug in to_char and TM prefix, in RC