BUG #1837: varchar/text operator "=" not unicode safe? - Mailing list pgsql-bugs

From Jörg Haustein
Subject BUG #1837: varchar/text operator "=" not unicode safe?
Date
Msg-id 20050819150838.21487F0E78@svr2.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1837
Logged by:          Jörg Haustein
Email address:      joerg.haustein@urz.uni-hd.de
PostgreSQL version: 8.0.3
Operating system:   Linux (SuSE 9.1)
Description:        varchar/text operator "=" not unicode safe?
Details:

I have a UNICODE database, trying to compare two unicode strings (Ethiopic
characters). Client encoding is also UNICODE:

testdb=> select 'በድሩ ሁሴን'='ሰይፉ ከበደ';
 ?column?
----------
 t
(1 row)

Clearly, it can be seen that they are not equal. The "LIKE" operator also
seems to think so:

testdb=> select 'በድሩ ሁሴን' LIKE 'ሰይፉ ከበደ';
 ?column?
----------
 f
(1 row)

What is the problem here?
The behavior is the same with SQL_ASCII databases and the SQL_ASCII client
encoding.

pgsql-bugs by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: [GENERAL] BUG #1830: Non-super-user must be able to copy from a
Next
From: Michael Fuhr
Date:
Subject: Re: BUG #1838: IndexSupportInitialze