]> granicus.if.org Git - postgresql/commit
Fix bugs in plpgsql and ecpg caused by assuming that isspace() would only
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Sep 2006 21:39:58 +0000 (21:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Sep 2006 21:39:58 +0000 (21:39 +0000)
commitbeca984e5f1c315d02064e69861be112f5a69b3d
treeb06b0b54e649824380e3b35822c1c054dac24608
parent6d0efd3a092ec60c7e27b53e604cbc87ba3c8e2c
Fix bugs in plpgsql and ecpg caused by assuming that isspace() would only
return true for exactly the characters treated as whitespace by their flex
scanners.  Per report from Victor Snezhko and subsequent investigation.

Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde
char-vs-unsigned-char issue.  I won't miss <ctype.h> when we are finally
able to stop using it.
19 files changed:
contrib/fuzzystrmatch/dmetaphone.c
contrib/hstore/hstore_io.c
contrib/isn/isn.c
contrib/ltree/crc32.c
contrib/ltree/ltree_io.c
contrib/ltree/ltxtquery_io.c
contrib/pgcrypto/imath.c
src/backend/parser/scan.l
src/backend/parser/scansup.c
src/backend/utils/misc/guc.c
src/bin/pg_dump/pg_dump.c
src/bin/psql/tab-complete.c
src/include/parser/scansup.h
src/include/port.h
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/libpq/fe-auth.c
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_funcs.c
src/port/path.c