CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl@svr1.postgresql.org 04/05/06 21:24:59
Modified files:
. : configure configure.in
contrib/ltree : lquery_op.c ltxtquery_op.c
contrib/pgcrypto: internal.c md5.c mhash.c pgcrypto.c px-crypt.c
px.c sha1.c
contrib/spi : timetravel.c
contrib/tsearch2: dict_ispell.c wparser_def.c
contrib/tsearch2/ispell: spell.c
src : Makefile.global.in
src/backend/access/transam: xlog.c
src/backend/commands: aggregatecmds.c define.c functioncmds.c
operatorcmds.c tablecmds.c typecmds.c
variable.c
src/backend/regex: regc_locale.c regcomp.c
src/backend/utils/adt: acl.c bool.c cash.c date.c datetime.c
encode.c float.c formatting.c numeric.c
regexp.c regproc.c tid.c timestamp.c
src/backend/utils/error: elog.c
src/backend/utils/misc: guc.c
src/bin/pg_dump: pg_backup_tar.c
src/bin/psql : command.c common.c copy.c describe.c help.c
psqlscan.l tab-complete.c
src/include : c.h pg_config.h.in port.h
src/include/port: qnx4.h ultrix4.h
src/include/regex: regcustom.h
src/interfaces/ecpg/pgtypeslib: datetime.c dt_common.c
src/interfaces/ecpg/preproc: preproc.y
src/interfaces/libpq: Makefile fe-exec.c fe-protocol2.c
fe-protocol3.c fe-secure.c win32.h
src/pl/plpython: plpython.c
Added files:
src/port : pgstrcasecmp.c
Removed files:
src/port : strcasecmp.c
Log message:
Solve the 'Turkish problem' with undesirable locale behavior for case
conversion of basic ASCII letters. Remove all uses of strcasecmp and
strncasecmp in favor of new functions pg_strcasecmp and pg_strncasecmp;
remove most but not all direct uses of toupper and tolower in favor of
pg_toupper and pg_tolower. These functions use the same notions of
case folding already developed for identifier case conversion. I left
the straight locale-based folding in place for situations where we are
just manipulating user data and not trying to match it to built-in
strings --- for example, the SQL upper() function is still locale
dependent. Perhaps this will prove not to be what's wanted, but at
the moment we can initdb and pass regression tests in Turkish locale.