On Thu, Mar 27, 2014 at 12:24 PM, Sven Schreiber <svetosch(a)gmx.net> wrote:
Am 26.03.2014 22:13, schrieb Evgenii Gilenko:
> Unfortunately, I've discovered a problem with importing data from a
> CSV file to a gretl data file.
>
> Specifically, when I try to import daily data from a CSV file (I
> attach the CSV-file to this letter), I receive the following:
>
...
>
> For some reasons gretl cuts off the first digit of the date in the
> "first row label" line (I stressed in red).
>
> I'm using gretl of version 1.9.14. I tried on version 1.9.13 - the
> same problem.
>
> But, on version 1.9.12 there was no such problem with importing data
> from the attached CSV file - I double-checked it.
>
Problem confirmed on Windows.
Perhaps it's related to this thing that was changed in 1.9.13 (from the
changelog):
"- CSV importer: ignore leading byte order mark"
I don't think so -- or at least, this file doesn't have a leading byte
order mark so far as I can tell.
I noticed that your file from the list seems to have
"unixy" line
endings (LF, or \n), provided the mailing list transmission hasn't
changed this. When I changed them to windowsy endings (\r\n, with the
SciTE editor), the import into gretl works nicely, so that's your
workaround. (File with transformed line endings attached.)
Thanks for trouble-shooting this. It seems the problem has to do with text
versus binary file-reading mode ("r" versus "rb" when calling fopen).
I'll
try some testing on Windows and see what I can find.
Allin