Case Conversion Functions - Mailing list pgsql-hackers

From Volkan YAZICI
Subject Case Conversion Functions
Date
Msg-id 20051226214146.GB527@alamut
Whole thread Raw
Responses Re: Case Conversion Functions  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

There're lots of places in the code which uses either pg_tolower()
or just tolower() - without aware of MB characters; or some
on-their-own implementations of pg_tolower(). (Actually, AFAIK,
whole MB case conversion is broken in -rHEAD.)

For instance, consider backend/utils/adt/{like.c, like_match.c}
file. Some lines of iwchareq() are a duplication of pg_tolower().

Another example: backend/parser/scansup.c 152 else if (ch >= 0x80 && isupper(ch)) 153     ch = tolower(ch);

Is this an intended behaviour or they're waiting for somebody to
clean them up.


Regards.


pgsql-hackers by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Re: Pushing init scripts into contrib/
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Fixing row comparison semantics