Re: russian case-insensitive regexp search not working

From: alexander lunyov <lan(at)startatom(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: russian case-insensitive regexp search not working
Date: 2007-07-12 05:35:32
Message-ID: 4695BDA4.9020005@startatom.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Tom Lane wrote:
> alexander lunyov <lan(at)startatom(dot)ru> writes:
>> With this i just wanted to say that lower() doesn't work at all on
>> russian unicode characters,
>
> In that case you're using the wrong locale (ie, not russian unicode).
> Check "show lc_ctype".

db=> SHOW LC_CTYPE;
lc_ctype
----------
C
(1 запись)

db=> SHOW LC_COLLATE;
lc_collate
------------
C
(1 запись)

Where can i change this? Trying to SET this parameters gives error
"parameter "lc_collate" cannot be changed"

> Or [ checks back in thread... ] maybe you're using the wrong operating
> system. Not so long ago FreeBSD didn't have Unicode locale support at
> all; I'm not sure if 6.2 has that problem but it is worth checking.
> Does it work for you to do case-insensitive russian comparisons in
> "grep", for instance?

I put to textfile 3 russian strings with different case of first char
and grep'ed them all:

# cat > textfile
Зеленая
Зеленодольская
зеленая
# grep -i зелен *
textfile:Зеленая
textfile:Зеленодольская
textfile:зеленая

So i think system is fine about unicode.

--
alexander lunyov
lan(at)startatom(dot)ru

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2007-07-12 06:09:06 Re: russian case-insensitive regexp search not working
Previous Message Tom Lane 2007-07-11 23:36:18 Re: [GENERAL] Count(*) throws error

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2007-07-12 06:09:06 Re: russian case-insensitive regexp search not working
Previous Message Florian G. Pflug 2007-07-12 02:03:38 Re: 2PC-induced lockup