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

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

[Octave-bug-tracker] [bug #40980] Failure to load uint8 variables from t


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #40980] Failure to load uint8 variables from text files
Date: Fri, 20 Dec 2013 13:04:04 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?40980>

                 Summary: Failure to load uint8 variables from text files
                 Project: GNU Octave
            Submitted by: rlaboiss
            Submitted on: Fri 20 Dec 2013 01:04:04 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The bug report reproduced below was submitted against the Debian package
octave_3.6.4-4.  This bug is also present in version 3.8.0-rc1.  The URL of
the bug report is http://bugs.debian.org/732659

-- Forwarded message from Kacper Gutowski <address@hidden> [2013-12-20
04:28]:
 
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:


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






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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