[Pkg-octave-devel] Bug#732659: Bug#732659: octave: fails to load uint8 variables from text files

Rafael Laboissiere rafael at laboissiere.net
Fri Dec 20 13:11:35 UTC 2013


Control: tags 732659 upstream confirmed
Control: forwarded 732659 https://savannah.gnu.org/bugs/index.php?40980

* Kacper Gutowski <mwgamera at gmail.com> [2013-12-20 04:28]:

> Package: octave
> Version: 3.6.4-4+b1
> Severity: normal
>
>
> When a variable of class uint8 is saved in the default text format, 
> it's actually written out in binary (one byte per element) instead 
> of plain text like every other type.  I don't know whether this is 
> intended or not, but file containing such variable can be loaded 
> only if said variable had no elements of values 9, 10, 11, 12, 13, 
> or 32.  These correspond to white characters in ASCII and apparently 
> "load" gets confused by them.
>
>
> Minimal example to reproduce the problem:
>
> hyper% octave -q --no-init-file 
> octave:1> a = uint8(10); 
> octave:2> save 'a' a 
> octave:3> load 'a' 
> error: load: failed to load scalar constant 
> error: load: trouble reading ascii file 'a' 
> error: load: reading file a 
> octave:3>

Thank you for this bug report.  This is a real bug and is also present in 
version 3.8.0-rc1.  This is an upstream problem and I forwarded your bug 
report to the bug tracker of the Octave project at Savannah.gnu.org.

Best,

Rafael



More information about the Pkg-octave-devel mailing list