[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequence
From: |
Lars Kindermann |
Subject: |
[Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings |
Date: |
Sat, 26 Mar 2016 08:57:36 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #3, bug #47539 (project octave):
OK, the patch fixes the 'delimiter' 'n' problem for me.
But the problem with long files looks serious:
I attached a file 'textscantest.txt'
Running this script in current dev (4.0 works fine)
FID = fopen('textscantest.txt', 'r');
f = textscan(FID, '%s', 'delimiter', 'n');
fclose(FID);
f
produces this garbage for me
...
[524,1] = 850;2014101321; 7; 38; 12.3; 99.0;eor
[525,1] = 850;2014101322; 7; 38; 12.2;
99.0;address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@
address@hidden@<C0><DE>address@hidden@address@hidden@address@hidden@address@hidden@^@<A0>"<A5>address@hidden@address@hidden@address@hidden;
X<<F4>address@hidden@<A8><DF>address@hidden@<C0><DF>+$~
address@hidden@0<E0>address@hidden@address@hidden@^@ 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden;2014092307;
7; 38; 8.;
83.0;eor4092307; 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@0<E0>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
<A0>"<A5>address@hidden@address@hidden@address@hidden;
X<<F4>address@hidden@x<E0>address@hidden@<90><E0>address@hidden@<B0><E0>address@hidden@address@hidden@^@
7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@850;2014092308;
7; 38; 11.3;
69.0;eor4092308; 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<B0><E0>address@hidden@address@hidden@address@hidden@address@hidden@<80>^S*$~^?^@
address@hidden@address@hidden@address@hidden@address@hidden@850;2014092309;
7; 38; 13.7;
57.0;address@hidden@^@@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<A0>"<address@hidden@address@hidden@address@hidden;
X<<F4>address@hidden@<88><E1>address@hidden@<A0><E1>address@hidden@^P<E2>address@hidden@address@hidden@^@
7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@850;2014092215;
7; 38; 14.1;
52.0;eor4092215; 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^P<E2>address@hidden@address@hidden@address@hidden@address@hidden@<D0><E1>address@hidden@address@hidden@address@hidden@address@hidden@<A0>"<A5>address@hidden@address@hidden@address@hidden;
X<<F4>address@hidden@X<E2>address@hidden@p<E2>address@hidden@<E0><E2>address@hidden@address@hidden@^@
7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden;2014092216;
7; 38;
13.7; 56.0;eor4092216; 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<E0><E2>address@hidden@address@hidden@address@hidden@address@hidden@<D0>
<E0>address@hidden@address@hidden@address@hidden@address@hidden@^@<A0>"<A5>address@hidden@address@hidden@address@hidden;
X<<F4>address@hidden@(<E3>address@hidden@@<E3>address@hidden@<B0><E3>address@hidden@address@hidden@^@
7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden;2014092217;
7; 38;
13.5; 58.0;eo4092217; 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<B0><E3>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@<A0>"<A5>address@hidden@address@hidden@address@hidden;
X<<F4>address@hidden@<F8><E3>address@hidden@^P<E4>address@hidden@<80><E4>address@hidden@address@hidden@^@
7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden;2014092218;
7; 38;13.1;
62.0;eor4092218; 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<80>
<E4>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<A0>"<A5>address@hidden@address@hidden@address@hidden;
X<<F4>address@hidden@<C8>
<E4>address@hidden@<90><9D>address@hidden@address@hidden@address@hidden@^@ 7;
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden;201092219;
7; 38; 12.7;
66.0;address@hidden@<C0><D5>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@address@hidden@^@<95>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<B0>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<A0><8D>,address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@p<E6>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden<address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@<FB><86><F5>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<9F><F6>address@hidden@address@hidden@&6
address@hidden@address@hidden@address@hidden<B5><F3>address@hidden@H<F2>address@hidden@<E0><F0>address@hidden@h<F2>address@hidden@address@hidden@address@hidden@address@hidden<B5<F3>address@hidden@(address@hidden@<B0><C4>address@hidden@(<CA>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@<A0>
<E6>address@hidden@<F0><F2>address@hidden@<D0><E7>address@hidden@&address@hidden@address@hidden@address@hidden@^@<F1>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@^P<E6>address@hidden@^P<E6>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@H<E6>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@@<E6>+$~^?^^@@<E6>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@/home/kinder/usr/octave/scripts/address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@
address@hidden@address@hidden@^@<E0><E5>address@hidden@`<EE>address@hidden@`<ED>address@hidden@<80>",address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@
<E8><E6>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<F0><E9>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@P<E7>address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@/home/kinder/usr/octave/scripts/address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<F0><E9>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<E8>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden<C4>address@hidden@P<F1>address@hidden@<C0><E8>address@hidden@<A0><E8>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<C1>^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden<E8>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@<F1>address@hidden@^P<address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@/home/kinder/usr/octave/scripts/address@hidden@^@@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^B^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<80><A9>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<F8>^Q,address@hidden@address@hidden@address@hidden@address@hidden@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^@<EB>address@hidden@
<E7>address@hidden@<D0><E7>address@hidden@<F0><EB>address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden<C3>address@hidden@p<C3>address@hidden<C0><8D>/address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@<A0><EB>address@hidden@<80>!,address@hidden@<F0><E9>address@hidden<EB>address@hidden@
address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@address@hidden@^`<ED>address@hidden@^P<C1>address@hidden@^@<EB>address@hidden@<D0><EB>address@hidden@
[526,1] = eor
[527,1] = 850;2014101323; 7; 38; 11.2; 99.0;eor
[528,1] = 850;2014101400; 7; 38; 13.1; 97.0;eor
...
Also octave crashes during textscan within another large program with
panic: Speicherzugriffsfehler -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
octave exited with signal 11
Speicherzugriffsfehler = Memory access error
Probably a pointer problem?
(file #36766)
_______________________________________________________
Additional Item Attachment:
File name: textscantest.txt Size:604 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47539>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47539] textscan is broken, Lars Kindermann, 2016/03/26
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/26
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/26
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings,
Lars Kindermann <=
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, anonymous, 2016/03/27
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, anonymous, 2016/03/27
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lachlan Andrew, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Lars Kindermann, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, anonymous, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Mike Miller, 2016/03/28
- [Octave-bug-tracker] [bug #47539] textscan misinterprets escape sequences in single quoted strings, Mike Miller, 2016/03/28