dbTalk Databases Forums  

[BUGS] BUG #2625: Case insensitive regexp matching doesn't work on national characters

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2625: Case insensitive regexp matching doesn't work on national characters in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Zoltan MEZEI
 
Posts: n/a

Default [BUGS] BUG #2625: Case insensitive regexp matching doesn't work on national characters - 09-13-2006 , 01:11 PM







The following bug has been logged online:

Bug reference: 2625
Logged by: Zoltan MEZEI
Email address: mezei.zoltan (AT) telefor (DOT) hu
PostgreSQL version: 8.0.3
Operating system: Centos Linux 3.7
Description: Case insensitive regexp matching doesn't work on
national characters
Details:

(the bug is also there in 8.1.4, used libc version is 2.3.2)

Symptom:
select 'á' ~* 'Á';
false
select upper('á') ~* upper('Á');
true

Information:
LC_CTYPE and LC_COLLATE are set to hu_HU.utf8. The database encoding is
UNICODE.

Proposed solution:
The problem is that the regex module doesn't use the functions from
wctype.h, and because of that, it cannot handle multibyte charachters'
upper() properly. It should use wctype functions and the problem is handled.
:-)

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.