Skip site navigation (1) Skip section navigation (2)

Case Conversion Functions

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Case Conversion Functions
Date: 2005-12-26 21:41:46
Message-ID: 20051226214146.GB527@alamut (view raw or flat)
Thread:
Lists: 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.

Responses

pgsql-hackers by date

Next:From: Martijn van OosterhoutDate: 2005-12-26 21:47:57
Subject: Re: Fixing row comparison semantics
Previous:From: Devrim GUNDUZDate: 2005-12-26 21:30:33
Subject: Re: Pushing init scripts into contrib/

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group