Re: COPY FROM is not 8bit clean
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Darcy Buskermolen <darcy@ok-connect.com>, Tatsuo Ishii <t-ishii@sra.co.jp>, pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org
Date: 2002-02-26T23:33:27Z
Lists: pgsql-bugs, pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes: > Can someone explain why this fixes the problem. Think about a machine where char is signed by default. Extracting \254 into an int will produce -2, which will not equal \254 returned by getc. regards, tom lane