[Pkg-octave-devel] Bug#732659: octave: fails to load uint8 variables from text files
Kacper Gutowski
mwgamera at gmail.com
Fri Dec 20 03:28:55 UTC 2013
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>
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (700, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages octave depends on:
ii libamd2.3.1 1:4.2.1-3
ii libarpack2 3.1.4-1
ii libatlas3-base [liblapack.so.3] 3.10.1-2
ii libblas3 [libblas.so.3] 1.2.20110419-7
ii libc6 2.17-97
ii libcamd2.3.1 1:4.2.1-3
ii libccolamd2.8.0 1:4.2.1-3
ii libcholmod2.1.2 1:4.2.1-3
ii libcolamd2.8.0 1:4.2.1-3
ii libcurl3-gnutls 7.33.0-1
ii libcxsparse3.1.2 1:4.2.1-3
ii libfftw3-double3 3.3.3-7
ii libfftw3-single3 3.3.3-7
ii libfltk-gl1.3 1.3.2-3
ii libfltk1.3 1.3.2-3
ii libfreetype6 2.5.1-1
ii libgcc1 1:4.8.2-1
ii libgl1-mesa-glx [libgl1] 9.2.2-1
ii libglpk36 4.52.1-2
ii libgomp1 4.8.2-1
ii libgraphicsmagick++3 1.3.16-1.2
ii libgraphicsmagick3 1.3.16-1.2
ii liblapack3 [liblapack.so.3] 3.5.0-2
ii liboctave1 3.6.4-4+b1
ii libpcre3 1:8.31-2
ii libqhull5 2009.1-3
ii libqrupdate1 1.1.1-1
ii libstdc++6 4.8.2-1
ii libumfpack5.6.2 1:4.2.1-3
ii libx11-6 2:1.6.2-1
ii octave-common 3.6.4-4
ii texinfo 5.2.0.dfsg.1-2
Versions of packages octave recommends:
ii gnuplot-x11 4.6.4-1
ii libatlas3-base 3.10.1-2
ii pstoedit 3.62-1
Versions of packages octave suggests:
pn octave-doc <none>
pn octave-htmldoc <none>
pn octave-info <none>
-- no debconf information
More information about the Pkg-octave-devel
mailing list