Re: [gdal-dev] CPLReadLine2L and control characters

2018-04-21 Thread Martin Landa
Hi, 2018-04-20 23:06 GMT+02:00 Even Rouault : > You mean 0x00 right ? right. > I would not expect those to be valid in ISO-8859-2. How are they supposed to > be interpreted ? Are you sure the dataset is valid ? Right, it's not valid in the sense of ISO-8859-2. Anyway I would attempt to skip suc

Re: [gdal-dev] CPLReadLine2L and control characters

2018-04-20 Thread Even Rouault
Martin, > > when working on VFK driver improvements [0] I am dealing with various > problems. I found lines in sample data which contain 0x0x control > character [1] inside. You mean 0x00 right ? I would not expect those to be valid in ISO-8859-2. How are they supposed to be interpreted ? Are

[gdal-dev] CPLReadLine2L and control characters

2018-04-20 Thread Martin Landa
Hi, when working on VFK driver improvements [0] I am dealing with various problems. I found lines in sample data which contain 0x0x control character [1] inside. CPLReadLine2L reads all characters: (gdb) p pszRawLine[68] $4 = 0 '\000' (gdb) p pszRawLine[69] $5 = 63 '?' (gdb) p pszRawLine[70] $6 =