From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Giles Lean <giles(at)nemeton(dot)com(dot)au> |
Cc: | shridhar_daithankar(at)persistent(dot)co(dot)in, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: contrib/fixchar (Was: Large databases, performance) |
Date: | 2002-10-12 04:20:14 |
Message-ID: | 9272.1034396414@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Giles Lean <giles(at)nemeton(dot)com(dot)au> writes:
> Portable code uses 'unsigned char' when using ctype.h features, even
> though for many platforms where 'char' is an unsigned type it's not
> necessary for correct functioning.
Yup. Awhile back I went through the PG sources and made sure we
explicitly casted the arguments of ctype.h functions to "unsigned char"
if they weren't already. If anyone sees a place I missed (or that
snuck in later) please speak up!
> I don't see any isspace() or similar in the code though, so I'm not
> sure why this issue is being raised?
Ditto, I saw no ctype.h usage in Manfred's code. It matters not whether
you label strcmp's argument as unsigned...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2002-10-12 06:41:02 | Re: contrib/fixchar (Was: Large databases, performance) |
Previous Message | Jeff Davis | 2002-10-12 04:18:23 | Re: MySQL vs PostgreSQL. |