[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compatibility problem with strread and \n delimiter
From: |
Michael Goffioul |
Subject: |
Re: Compatibility problem with strread and \n delimiter |
Date: |
Sat, 15 Oct 2011 12:14:35 +0100 |
On Sat, Oct 15, 2011 at 11:45 AM, Søren Hauberg <address@hidden> wrote:
>> As ML doesn't have double-quoted strings, only the first form is valid, but
>> from
>> what I can see from mirone code, it looks like in ML, the first form
>> actually gives
>> the second result. Can anybody confirm? Do we want to change this in octave?
>
> In Matlab I see
>
>>> strread(sprintf('1\n2\n3'), '%d', 'delimiter', '\n')
>
> ans =
>
> 1
> 2
> 3
>
> I think the ML behaviour is fairly sensible, so I would suggest making
> Octave compatible here.
Thanks, I reported the issue:
https://savannah.gnu.org/bugs/index.php?34558
Michael.