octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequence


From: anonymous
Subject: [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings
Date: Mon, 28 Mar 2016 17:16:07 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #9, bug #47539 (project octave):

Matlab 2012a does return ASCII 26 in textscan:


>> FID = fopen('textscantest.txt', 'r');
>> f = textscan(FID, '%s', 'delimiter', 'n');
>> fclose(FID);
>> tmp = f{1}

ends with

    '850;2016032422;   1;  38;   5.8;  92.0;eor'
    '850;2016032423;   1;  38;   5.8;  93.0;eor'
    ''

and is confirmed with

>> foo = tmp{end} + 0
foo =
    26



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47539>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]