Re: [CSV] CSV-58 is killing me

2013-05-06 Thread sebb
I think I've fixed most of the issues. I'm not entirely sure that FF, TAB and BACKSPACE should be handled the same way as CR and LF. The latter are special because they are EOL characters; as far as I can tell the former don't need to be escaped, so they should not be treated specially when unesca

Re: [CSV] CSV-58 is killing me

2013-05-02 Thread Benedikt Ritter
2013/5/2 Gary Gregory > (top-posting cause it's getting hard to find stuff) > > >Should CSV unconditionally recognise \r \n etc as CR LF? > >If so, then they don't need a ! escape beforehand. > > There is ONE escape character, so if it is '!', then "\r " is just "\r". > If we want >1 escape cha

Re: [CSV] CSV-58 is killing me

2013-05-02 Thread Gary Gregory
(top-posting cause it's getting hard to find stuff) >Should CSV unconditionally recognise \r \n etc as CR LF? >If so, then they don't need a ! escape beforehand. There is ONE escape character, so if it is '!', then "\r " is just "\r". If we want >1 escape character, then that's a different story

Re: [CSV] CSV-58 is killing me

2013-05-02 Thread sebb
On 2 May 2013 18:26, Benedikt Ritter wrote: > 2013/5/2 sebb > > > On 2 May 2013 14:56, sebb wrote: > > > > > On 2 May 2013 09:48, Benedikt Ritter wrote: > > > > > >> 2013/5/1 sebb > > >> > > >> > On 1 May 2013 08:53, Benedikt Ritter wrote: > > >> > > > >> > > Hi, > > >> > > > > >> > > I have

Re: [CSV] CSV-58 is killing me

2013-05-02 Thread Benedikt Ritter
2013/5/2 sebb > On 2 May 2013 14:56, sebb wrote: > > > On 2 May 2013 09:48, Benedikt Ritter wrote: > > > >> 2013/5/1 sebb > >> > >> > On 1 May 2013 08:53, Benedikt Ritter wrote: > >> > > >> > > Hi, > >> > > > >> > > I have tried to solve CSV-58 - Escape handling needs rethinking [1] > a > >>

Re: [CSV] CSV-58 is killing me

2013-05-02 Thread sebb
On 2 May 2013 14:56, sebb wrote: > On 2 May 2013 09:48, Benedikt Ritter wrote: > >> 2013/5/1 sebb >> >> > On 1 May 2013 08:53, Benedikt Ritter wrote: >> > >> > > Hi, >> > > >> > > I have tried to solve CSV-58 - Escape handling needs rethinking [1] a >> few >> > > times over the past weeks now.

Re: [CSV] CSV-58 is killing me

2013-05-02 Thread sebb
On 2 May 2013 09:48, Benedikt Ritter wrote: > 2013/5/1 sebb > > > On 1 May 2013 08:53, Benedikt Ritter wrote: > > > > > Hi, > > > > > > I have tried to solve CSV-58 - Escape handling needs rethinking [1] a > few > > > times over the past weeks now. But I can not see a way to get this > > workin

Re: [CSV] CSV-58 is killing me

2013-05-02 Thread Benedikt Ritter
2013/5/1 sebb > On 1 May 2013 08:53, Benedikt Ritter wrote: > > > Hi, > > > > I have tried to solve CSV-58 - Escape handling needs rethinking [1] a few > > times over the past weeks now. But I can not see a way to get this > working. > > There are two problems with our current implementation: >

Re: [CSV] CSV-58 is killing me

2013-05-01 Thread sebb
On 1 May 2013 08:53, Benedikt Ritter wrote: > Hi, > > I have tried to solve CSV-58 - Escape handling needs rethinking [1] a few > times over the past weeks now. But I can not see a way to get this working. > There are two problems with our current implementation: > > 1. a sequence of " test \a te

[CSV] CSV-58 is killing me

2013-05-01 Thread Benedikt Ritter
Hi, I have tried to solve CSV-58 - Escape handling needs rethinking [1] a few times over the past weeks now. But I can not see a way to get this working. There are two problems with our current implementation: 1. a sequence of " test \a test" will be parsed to "test a test", although there is no