Re: Bug in COPY FROM backslash escaping multi-byte chars

2021-02-04 Thread Heikki Linnakangas
On 04/02/2021 03:50, Kyotaro Horiguchi wrote: At Wed, 3 Feb 2021 15:46:30 +0200, Heikki Linnakangas wrote in On 03/02/2021 15:38, John Naylor wrote: On Wed, Feb 3, 2021 at 8:08 AM Heikki Linnakangas mailto:hlinn...@iki.fi>> wrote: > > Hi, > > While playing with COPY FROM refactorings i

Re: Bug in COPY FROM backslash escaping multi-byte chars

2021-02-03 Thread Kyotaro Horiguchi
At Wed, 3 Feb 2021 15:46:30 +0200, Heikki Linnakangas wrote in > On 03/02/2021 15:38, John Naylor wrote: > > On Wed, Feb 3, 2021 at 8:08 AM Heikki Linnakangas > > wrote: > > > > > > Hi, > > > > > > While playing with COPY FROM refactorings in another thread, I notice

Re: Bug in COPY FROM backslash escaping multi-byte chars

2021-02-03 Thread Heikki Linnakangas
On 03/02/2021 15:38, John Naylor wrote: On Wed, Feb 3, 2021 at 8:08 AM Heikki Linnakangas > wrote: > > Hi, > > While playing with COPY FROM refactorings in another thread, I noticed > corner case where I think backslash escaping doesn't work correctly. > Consider the

Re: Bug in COPY FROM backslash escaping multi-byte chars

2021-02-03 Thread John Naylor
On Wed, Feb 3, 2021 at 8:08 AM Heikki Linnakangas wrote: > > Hi, > > While playing with COPY FROM refactorings in another thread, I noticed > corner case where I think backslash escaping doesn't work correctly. > Consider the following input: > > \么.foo I've seen multibyte delimiters in the wild,

Bug in COPY FROM backslash escaping multi-byte chars

2021-02-03 Thread Heikki Linnakangas
Hi, While playing with COPY FROM refactorings in another thread, I noticed corner case where I think backslash escaping doesn't work correctly. Consider the following input: \么.foo I hope that came through in this email correctly as UTF-8. The string contains a sequence of: backslash, multi