Re: COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steven Schlansker <steven(at)trumpet(dot)io>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence
Date: 2010-08-21 17:07:39
Message-ID: 22880.1282410459@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Steven Schlansker <steven(at)trumpet(dot)io> writes:
> Anyway, it looks like this is actually a BSD bug which got copy +
> pasted into Apple's Darwin source -
> http://lists.freebsd.org/pipermail/freebsd-i18n/2007-September/000157.html

I've applied a patch for this to HEAD & 9.0:
http://archives.postgresql.org/pgsql-committers/2010-08/msg00273.php

I'm reluctant to back-patch it into already-released branches, though.
Given the lack of prior reports, the odds of breaking something for
somebody in a minor release seem to outweigh the odds of doing good.
But you could easily drop it into a local copy of 8.4 if you wish.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Johnny Wang 2010-08-23 10:27:36 BUG #5627: Can not install on POSReady 2009
Previous Message Tom Lane 2010-08-21 14:12:27 Re: BUG #5626: Parallel pg_restore fails with "tuple concurrently updated"

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-08-21 17:12:26 Re: Version Numbering
Previous Message Sergio A. Kessler 2010-08-21 17:06:47 Re: Version Numbering